Loading
The online Trailblazer Community becomes read-only Oct 30, 2026Read More
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Configure Custom Logic in an Asynchronous Flow

Configure Custom Logic in an Asynchronous Flow

When you configure the Decompose Sales Transaction and Orchestrate Sales Transaction invocable actions in an asynchronous request, the decomposition process runs in the background. Pause the flow until decomposition is finished before executing the custom logic and the Orchestrate Sales Transaction invocable action.

A sample of an asynchronous flow with custom logic between decomposition and orchestration steps
  1. Create a Autolaunched Flow (No Trigger).
  2. Add the Decompose Sales Transaction invocable action to the flow.
  3. Set intakeRequestType to Asynchronous.
  4. Choose one of the following methods to process the Sales Transaction Decomposition Event platform event:
    1. To pause until the event occurs, add a Wait for Conditions element within the decomposition flow path.
    2. To launch when the event is published, add a platform event-triggered flow.
    For high-volume, concurrent scenarios, use an after-insert Apex trigger, and separate the custom logic and Orchestrate Sales Transaction invocable action into its own flow
  5. Add your custom logic in the flow path that runs after a successful Sales Transaction Decomposition Event result.
  6. Add the Orchestrate Sales Transaction invocable action to the flow.
  7. Set intakeRequestType to Asynchronous.
  8. Save and activate the flow.
 
Loading
Salesforce Help | Article