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
          Flows in Flow Approval Processes

          Flows in Flow Approval Processes

          Each background and approval step in a flow approval process runs an associated flow. If the logic for controlling stage and step execution calls for more than 10 requirements, use an evaluation flow to create more complex criteria.

          Required Editions

          View supported editions for Flow Approval Processes.

          Approval Steps

          Each approval step assigns a screen flow to a user, group, or queue.

          Background Steps

          Each background step calls an autolaunched flow.

          When to Start the Step

          Each step can call an evaluation flow to determine whether the step can be started. An evaluation flow is a flow with a process type of Evaluation Flow. It’s an autolaunched flow that contains a predefined Boolean output variable named isOrchestrationConditionMet. To indicate that the custom entry conditions are met, the output variable must be set to true within the flow.

          Note
          Note The Boolean isOrchestrationConditionMet variable defined in an evaluation flow must be initialized to false.

          When to Complete the Step

          An approval step can call an evaluation flow to determine whether the step can be marked as completed. An evaluation flow is a flow with a process type of Evaluation Flow. It’s an autolaunched flow that contains a predefined Boolean output variable named isOrchestrationConditionMet. To indicate that the custom exit conditions are met, the output variable must be set to true.

          Note
          Note The Boolean isOrchestrationConditionMet variable defined in an evaluation flow must be initialized to false.

          When to Complete the Stage

          A stage can call an evaluation flow to determine whether the stage can be considered as completed. An evaluation flow is a flow with a process type of Evaluation Flow. It’s an autolaunched flow that contains a predefined Boolean output variable named isOrchestrationConditionMet. To indicate that the custom exit conditions are met, the output variable must be set to true.

          Note
          Note The Boolean isOrchestrationConditionMet variable defined in an evaluation flow must be initialized to false.

          Flow Usage

          Flow approval processes are related to flows in 3 ways:

          Relationship Page list Description
          Orchestration Step Action Orchestration Version Uses Flows
          • The active autolaunched flow that the flow approval process version uses as an background step
          • The active screen flow that the flow approval process version uses as an approval step
          Evaluation Flow Orchestration Version Uses Flows

          The evaluation flow that the flow approval process version to determine whether:

          • A stage can be completed
          • A background step can be started
          • An approval step can be started
          • An approval step can be completed
          Request Approval Action Orchestration Used in Flow Versions The flow version that uses the flow approval process from an Action element that calls the Request Approval action

          View the flows that a flow approval process version uses or the flow approval processes that a flow version uses in the Approval Lightning app. See Determine Flow Usage in a Flow Approval Process Version or Determine Flow Approval Process Usage in Flow Versions.

          Flow Variables

          Flows can have internal-only, input, and output variables.

          If the combined input values for a flow called by a flow approval process step is more than 32,768 characters, the orchestration run associated with the parent approval submission fails. This error can be caused by passing one or more records to a flow called by a step. To avoid this error, pass a record ID to the referenced flow, and use a Get Records element in the flow with the passed ID. Using a passed ID with a Get Records element also means that you always have the latest version of the record.

          Variable Description Notes
          Internal-only The variable is used inside the flow and isn’t available for input or output in a flow approval process. You can create your own internal variables, or you can let flow create them for you. The flow approval process that calls the screen flow or autolaunched flow can’t use these variables.
          Input The user-defined variable is marked Available for input. When the flow is called by a flow approval process step, its input variables are inputs for the step.

          Flows that can have input values from a flow approval process for input variables are:

          • Autolaunched flows
          • Screen flows
          • Evaluation flows
          Output The user-defined variable is marked Available for output. Output variables are accessible as automatic outputs for the associated step and are available throughout the flow approval process at design time.

          Flow approval processes can access user-defined output variables from:

          • Autolaunched flows
          • Screen flows

          When you reference automatic output that contains a record or a record collection in a flow approval process, records are refreshed with their latest values each time the orchestration run associated with the parent approval submission resumes.

          To add custom comments to the run log for an orchestration run associated with the parent approval submission, create a text output variable named Comments in a flow called by an approval orchestration step and assign the variable a value in the flow.

          • 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.
           
          Loading
          Salesforce Help | Article