capabilities.work

Bulk Set Objects and Notify

A 3-step recipe with Knock. We can help you get access.

Recipe · 3 steps

Bulk Set Objects and Notify

with Knock
Works with AI assistants

Bulk upsert objects, poll the bulk operation, then trigger a workflow.

  1. Submit the batch of objects for the collection, returning a bulk operation handle to poll.
  2. Fetch the bulk operation and check its status. Re-runs this step while the operation is still queued or processing.
  3. Trigger the workflow targeting the object so its subscribers are notified now that the bulk set has completed.
What you'll need to have ready
  • apiKey: Knock secret API key (sk_...) used as a Bearer token.
  • collection: The collection to bulk set objects into.
  • objects: The list of object payloads to upsert in bulk.
  • notifyObjectId: The id of the object to target with the workflow once set.
  • workflowKey: The key of the workflow to trigger.
  • data: Optional data payload passed into the workflow run.
For your developer

Arazzo workflow knock-app:bulk-set-objects-notify, 3 operations: bulkSetObjects → getBulkOperation → {$sourceDescriptions.workflowsApi.url}#/paths/~1v1~1workflows~1{key}~1trigger/post. Specs on APIs.io.