Loading
Salesforce now sends email only from verified domains. Read More
Automate Your Business Processes
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
          Evaluation Flows for Flow Approval Processes

          Evaluation Flows for Flow Approval Processes

          When you need more than 10 requirements to control stage and step execution, use an evaluation flow. Select the Evaluation Flow tile in the New Automation window to create an evaluation flow.

          Required Editions

          View supported editions for Flow Approval Processes.

          Variables in Evaluation Flows

          When you select the Evaluation Flow tile in the New Automation window, you create an evaluation flow that contains a predefined Boolean output variable named isOrchestrationConditionMet.

          Initialize isOrchestrationConditionMet to false. To indicate that the custom conditions are met, set isOrchestrationConditionMet to true.

          Evaluation flows return a value only for isOrchestrationConditionMet. Values for any other output variables are discarded.

          Evaluation Flow Execution

          Every time an approval step or an asynchronous background step within the current stage is completed, the orchestration run associated with a parent approval submission evaluates the conditions for that stage and its steps. To trigger an evaluation of conditions for the current stage and its steps, publish an orchestration event with $Orchestration.Instance of the orchestration run associated with the approval submission.

          The status of each stage or step determines which conditions are checked by the orchestration run associated with a parent approval submission. If the condition being checked relies on an evaluation flow, the evaluation flow runs.

          • When a stage is in progress, the orchestration run associated with the parent approval submission determines whether the stage can be completed.
          • For each step not started within the current stage, the orchestration run associated with the parent approval submission determines whether the step is ready to start.
          • For each in-progress approval step within the current stage, the orchestration run associated with a parent approval submission determines whether the step can be completed.

          Running Context of an Evaluation Flow

          Evaluation flows can be run only in system context without sharing and have access to all data

           
          Loading
          Salesforce Help | Article