capabilities.work

Trigger a Deferred Notification and Cancel It

A 2-step recipe with Novu. We can help you get access.

Recipe · 2 steps

Trigger a Deferred Notification and Cancel It

with Novu

Trigger a workflow with a known transactionId, then cancel it by that id.

  1. Trigger the workflow to the subscriber passing the caller-supplied transactionId so it can later be referenced for cancellation.
  2. Cancel any active or pending workflow jobs (delays, digests) associated with the transactionId. Novu returns a boolean acknowledgement.
What you'll need to have ready
  • workflowId: The trigger identifier of the workflow to send.
  • subscriberId: The subscriber id to notify.
  • transactionId: A caller-supplied unique transaction id used both for deduplication on the trigger and to target the cancel call.
  • payload: Custom payload object used to render the workflow.
For your developer

Arazzo workflow novu:trigger-then-cancel, 2 operations: EventsController_trigger → EventsController_cancel. Specs on APIs.io.