Loading
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Configure Custom Logic between Decomposition and Orchestration

          Configure Custom Logic between Decomposition and Orchestration

          To insert custom logic into the fulfillment process between the decomposition and orchestration steps, invoke the two processes separately. The standard Submit Sales Transaction invocable action runs decomposition and orchestration processes sequentially. To decouple the processes, use the individual Decompose Sales Transaction and Orchestrate Sales Transaction invocable actions. Add your custom logic and compose the fulfillment plan with the necessary, up-to-date information. Custom logic is critical if certain data needed for specific validations or data enrichment is only available after decomposition. After the custom logic executes, trigger the Orchestrate Sales Transaction invocable action through various methods, such as custom platform events, Apex triggers, or direct flow actions.

          The configuration of the flow differs depending on whether you are processing transactions synchronously or asynchronously.

          Note
          Note Provide the same input parameter values in both the Decompose Sales Transaction and Orchestrate Sales Transaction invocable actions. For example, if allowOverrideOfPointOfNoReturn is set to true in the Decompose Sales Transaction invocable action, it must set to true for the Orchestrate Sales Transaction invocable action too.
          Note
          Note The rollback behaviour when an error occurs depends on whether the flow runs synchronously or asynchronously.
          • Synchronous Rollback: An error causes both decomposition and orchestration artifacts to roll back.
          • Asynchronous Rollback: Successful decomposition artifacts aren't rolled back if orchestration fails, unless the error happens while composing the fulfillment plan.
          • Configure Custom Logic in a Synchronous Flow
            When you configure the Decompose Sales Transaction and Orchestrate Sales Transaction invocable actions in a synchronous request, the flow executes the actions sequentially.
          • 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.
           
          Loading
          Salesforce Help | Article