Menu
Add Or Update Documents
Add or update many documents in one step. Each is matched on its own key, so sending one again updates it.
Use it in a workflow
- Add a step and choose the Search connector.
- Pick the Add Or Update Documents action (under database).
- Fill in the fields below, then reference the result from later steps as
{{addOrUpdateDocuments.response.data}}.
Fields
Examples
Sync a page of products
A document with a problem is reported in errors and the others are still saved
{
"indexSlug": "products",
"documents": "[{\"id\":\"p1\",\"title\":\"Trail shoe\",\"variants\":[{\"sku\":\"p1-a\",\"color\":\"black\",\"size\":\"M\"}]}]"
}
Need more? See the Search guide for connection setup and behaviour shared by every action.
Was this page helpful?