Reference / Sinks

Backfill a sink

backfill_sinkocmgr sink backfillPOST /v1/sinks/{id}/backfillADMIN

Set preview:true to count users, events and groups without writing. Analytics backfills identify users, optionally identify groups, then walk activities oldest-first; backfill is free. Otherwise walk every member the sink’s filter selects into the far side, five hundred at a time, through the same mapping a live delivery uses. This writes a record per member into somebody’s CRM, so it is admin and it is worth reading filter on the sink first — a sink meant for customers and champions, pointed at the whole community, is how a CRM gains forty thousand contacts on a Tuesday. It resumes from its stored cursor rather than starting again, and re-running a page writes nothing new, because a backfill’s delivery ids are deterministic. queued: false means the cursor moved and no worker took it: start one, or run ocmgr sink backfill at a terminal.

Parameters

previewboolean

Count users, events and groups without changing the cursor or sending anything.

sinkstringup to 200 charsREQUIRED

The sink, by id or by name, as list_sinks reports them. A name two sinks share is refused; use the id.

restartboolean

Start again from the beginning rather than resuming the stored cursor. Defaults to restarting only when the last walk finished.

CLI flags

--preview

Count users, events and groups without starting

--restart

Start from the beginning rather than resuming the stored cursor

Also in Sinks