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
          Decision Flow Element

          Decision Flow Element

          Evaluate a set of conditions, and route users through the flow based on the outcomes of those conditions. This element performs the equivalent of an if-then statement.

          Required Editions

          Note
          Note Flow Builder remembers your expand and collapse preferences for this element on the canvas. Your view is stored locally in your browser and persists between sessions on the same browser; this setting is specific to you and does not affect the view of other users. However, if you clear your browser's cookies and other site data, or switch to a different browser, your preferences reset to the default expanded view. Clearing cached images or files doesn't affect this setting.
          field Description
          Label Identifies the name for this element on the canvas.
          API Name The requirement for uniqueness applies only to elements within the current flow. Two elements can have the same API name, provided they're used in different flows.An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores.
          Description A description of what the element does within the flow approval process.

          Select Decision Logic

          Select the method that the Decision element uses to determine which outcome to run.

          Method Description
          Define Manually (Default) Define logic to evaluate explicitly defined data from your flow and determine which outcome runs. Outcomes for a Decision element with manually set conditions are evaluated in the order that they’re listed. Therefore, the order that you define your outcomes in can impact the outcome that the flow takes.
          Define with AI (Advanced) Write instructions for AI to dynamically evaluate data from your automation and determine which outcome runs. Outcomes for a Decision element with AI conditions are evaluated simultaneously. Therefore, the order that you define your outcomes in has no impact on the outcome that the flow takes.

          Describe the Decision

          This section is shown when you select Define with AI (Advanced).

          Field Description
          Decision Instructions A description of what decision the element is making. Include resources from the flow to improve AI accuracy.

          Outcomes for Define Manually (Default)

          For each path that the flow can take, create an outcome. For each outcome, specify the conditions that must be met for the flow to take that path. To relabel the path that the flow takes if no outcome’s conditions are met, click Default Outcome.

          Field Description
          Outcome Label Identifies the connector for this outcome on the canvas.
          Outcome API Name The requirement for uniqueness applies only to elements within the current flow. Two elements can have the same API name, provided they're used in different flows.An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores.
          Condition Requirements to Execute Outcome Determines whether the flow takes this outcome’s path. Sets logic and conditions for each outcome that determine if the flow follows its path.
          When to Execute Outcome

          Available on record-triggered flows. Determines whether this outcome’s path is taken, based on whether the triggering record is updated to meet the condition requirements. For example, the opportunity update that triggered the flow to run changed its stage to Closed Won from any value that isn’t Closed Won.

          This option checks if the triggering record didn't previously meet the condition requirements and if the $Record variable now meets the condition requirements. If your flow changes any of the $Record variable’s fields before it runs the configured Decision element, the Decision checks if the $Record’s new field values now meet the condition requirements.

          Example
          Example

          Using a Decision element, determine whether to:

          • Give customers a return shipping address or instructions on how to resolve the problem when an item is determined to be faulty.
          • Offer a customer a loan based on the results of a credit scoring formula.
          • Inform sales leaders when an opportunity’s stage is changed to Closed Won.
          Tip
          Tip Configure your flow so that it does different things based on what a user selects for a Picklist screen component. To do so, add a decision after the screen to create the branches of the flow based on the choices available in the picklist. Then you can represent each choice in your decision and connect it to a branch of your flow.

          Outcomes for Define with AI (Advanced)

          For each path that the flow run can take, create an outcome. For each outcome, enter information that tells AI when to take the outcome. To relabel the path to take if AI determines that no conditions are met, click Default Outcome.

          Field Description
          Outcome Label Identifies the connector for this outcome on the canvas.
          Outcome API Name The requirement for uniqueness applies only to elements within the current flow. Two elements can have the same API name, provided they're used in different flows.An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores.
          Outcome Instructions An explanation that tells AI when to take the outcome. Include resources from the flow to improve AI accuracy.

          Usage for Manual Conditions

          When a Decision element offers two possible outcomes, the default outcome is only followed if the conditions for the first outcome aren’t met.

          If a Decision element has more than two possible outcomes, the system evaluates them in the order they’re listed. For each outcome:

          • Its conditions are checked.
          • If the conditions are true, the path associated with that outcome is run.
          • If the conditions are false, the system moves on to evaluate the conditions of the next outcome in the list.

          If none of the defined outcome conditions are met, then the default outcome path runs.

          Usage for AI Conditions

          AI Decision isn't supported for Marketing Cloud flows or record-triggered flows.

          At run-time, the decision instructions are combined with all outcome instructions, and AI determines which outcome to take. Because AI evaluates all conditions simultaneously, the order that you define your outcomes in has no impact on the outcome that the flow takes.

           
          Loading
          Salesforce Help | Article