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
          Debug a Flow Approval Process Without Changing Your Data

          Debug a Flow Approval Process Without Changing Your Data

          Debug your flow approval process in Flow Builder to ensure that it runs as expected or to determine the cause of unexpected errors. Use rollback mode to debug your flow approval process without making changes to your Salesforce data.

          Required Editions

          View supported editions for Flow Approval Processes.
          User Permissions Needed
          To debug a flow approval process Manage Flow

          Open the Flow Approval Process from the Approvals App

          Open the Flow Approval Processes list view from the Approvals Lightning app.

          1. On the navigation bar, click App Launcher icon.
          2. In the search box, enter approvals, and then select Approvals.
            The Approvals app opens.
          3. In the Approvals app, click Manage All Flow Approval Processes.
            The Flow Approval Processes list view opens.
          4. Click the label of the flow approval process, and then click View in Flow Builder.
            The flow approval process opens in Flow Builder.

          Open the Flow Approval Process from Setup

          In Setup, flow approval processes are shown on the Flows list view.

          1. Click Gear icon, and then select Setup.
          2. From Setup, in the Quick Find box, enter Flows, and then select Flows.
          3. Click the label of the flow approval process.
            The flow approval process opens in Flow Builder.

          Manage Start Points and End Points

          Set a start point to skip earlier stages, an end point to stop before later stages, or both to isolate a middle segment. Set start points and end points only on Stage elements. To test a single stage, set it as both the start point and the end point. Steps in skipped stages don’t produce output values, even when they have configured test output, so configure test input for steps that rely on their output. Use multiple end points when testing decision paths. Start and end points aren’t saved when you save the flow approval process.

          Saving a flow approval process also saves mock input. Clicking Reset Debug Settings doesn't affect mock input.

          1. (Optional) Set a start point and configure test input for the synchronous background steps that rely on output from stages that didn’t run.
            1. Hover over a stage.
            2. Click The actions icon.
            3. Select Select as Start Point.
              The
              start point icon
              appears on the stage element.
            4. Select a synchronous background step that relies on output from a stage that didn’t run.
            5. In the Step panel’s Configure Test Input tab, enter the necessary values for the step.
              When you enter a test value, its toggle is set to Included.
            6. To configure test input for additional steps that rely on output from stages that didn't run, repeat steps 1d and 1e.
          2. (Optional) Remove a start point and ignore test input for synchronous background steps.
            1. Hover over a stage.
            2. Click The actions icon.
            3. Select Selected as Start Point.
            4. Select a synchronous background step with configured test input.
            5. In the Step panel's Configure Test Input tab, set the toggle to Not Included for the input values you want to ignore.
            6. To ignore configured test input values for additional synchronous background steps, repeat steps 2d and 2e.
          3. (Optional) Set an end point.
            1. Hover over a stage.
            2. Click The actions icon.
            3. Select Select as End Point.
            The
            end point icon
            appears on the stage element.
          4. (Optional) Remove an end point.
            1. Hover over a stage.
            2. Click The actions icon.
            3. Select Selected as End Point.

          Configure the Triggering Record for a Record-Triggered Flow Approval Process

          To debug a record-triggered flow approval process, set the triggering record. This setting persists for the current Flow Builder session. Trigger a record-triggered orchestration in one of three ways: only when a record is created, only when a record is changed, or when a record is either created or updated.

          Flow Builder preserves the selected triggering record value and setup option when you switch between Edit mode and Debug mode. Refreshing your browser or closing Flow Builder clears these selections.

          1. On the Button Bar, click Debug.
            The Debug panel opens with the Setup tab selected.
          2. For a flow approval process that’s triggered when a record is either created or updated, select the type of trigger to debug for.
            • To debug a trigger on a new record, for Run the automation As If The Record Is, select Created.
            • To debug a trigger on a record change, for Run the automation As If The Record Is, select Updated.
          3. In the text box, select the record to use for the debug run’s triggering record.
          4. Select Run automation in rollback mode.
          5. To manually clear debug settings, click Reset Debug Settings.

          Set Input Variables for an Autolaunched Flow Approval Process

          To debug an autolaunched flow approval process, set values for all of its input variables. The debug run fails if any input variable is missing or invalid. The values you specify persist for the current Flow Builder session.

          Flow Builder preserves the input variable values and setup option when you switch between Edit mode and Debug mode. Refreshing your browser or closing Flow Builder clears these debug settings.

          1. On the Button Bar, click Debug.
            The Debug panel opens with the Setup tab selected.
          2. On the Setup tab, enter values for each relevant input variable.
          3. Select Run automation in rollback mode.
          4. To manually clear debug settings, click Reset Debug Settings.

          Set Mock Output for Steps

          Set mock output for all asynchronous steps. For synchronous steps, defining mock output is optional. A step configured to use mock output, doesn’t run its referenced flow.

          Orchestration runs for flow approval processes process a background step asynchronously when the step’s underlying flow contains 1 or more Action, Subflow, or Wait elements. Orchestration runs for flow approval processes process all interactive steps asynchronously.

          Saving a flow approval process also saves mock output. Clicking Reset Debug Settings doesn't affect mock output.

          1. In the Debug panel, click the Stages tab.
          2. Define mock output for each asynchronous step in the flow approval process. Optionally, define mock output for synchronous steps.
            1. On the Stages tab of the Debug panel, click Edit for a step.
              The Step properties panel opens to the Configure Test Output tab.
            2. On the Configure Test Output tab, set Define Test Output Values to On.
            3. Enter values for the step’s output values.
          3. Save the flow approval process.
            Note
            Note If you’re debugging an activated flow approval process you can save the automation only as a new flow approval process.

          Start an Orchestration Run for the Flow Approval Process

          Debug the orchestration run based on the flow approval process and view its results in the Details tab of the Debug pane.

          1. On the Debug panel, click the Setup tab, and then click Run.
            The Details tab of the Debug panel shows cards for the details of the orchestration run based on the flow approval process.
          2. Review the debug details. To see more information about a card, in the card, click Details.
          3. To make and save changes to the flow approval process, click Edit Flow.
            The Debug pane closes.
           
          Loading
          Salesforce Help | Article