How to Pause and Resume a Screen Flow in Salesforce

In this Salesforce tutorial, we will learn to Pause and Resume a Screen Flow in Salesforce.

In Salesforce flows, we have a Pause feature, specifically for the Screen flow. This helps in pausing a flow for a specific time duration, and with the Resume function, we can start the flow from where it was paused.

Pause and Resume Functionality in Salesforce flows

The Pause function helps us temporarily stop or pause a Screen flow. For example, we have a screen flow to create an Account record, and we don’t have details of some fields in that situation; we can pause the flow temporarily until we get the details.

The Resume function allows us to resume the paused flow from where it was paused.

How to Pause a Screen Flow in Salesforce

To add the Pause functionality to the Screen flow, follow the below steps.

1. To enable the Pause function in Salesforce flows, navigate to the Setup page and search, then select Process Automation Settings in the Quick Find box.

How to enable pause in Salesforce screen flow

2. In the Process Automation settings, activate the checkbox Let Users Pause Flows and click Save to apply the changes.

Setup and enable Pause in Salesforce Screen flows

3. Now, navigate to the Flows setup and open the screen flow.

4. If the flow is activated, Deactivate it in the flow builder. You must do that to make any changes in the flow.

5. Click on the Edit element button in the Screen element.

How to pause a Salesforce Screen flow

6. In the next window, click the Configure footer dropdown and select Use the Standard label in the Pause Button section.

We can also use a custom label, like “stop,” for the pause button. Select the radio button ‘Use a custom label‘ to do that.

At last, click Done to apply changes.

Pause functionality in Salesforce flows

7. Click on the Debug button in the flow builder.

8. Run the flow and enter the fields. Here, we will intentionally leave a couple of fields blank.

Now click on the Pause button.

Pause a Salesforce Screen flow

9. As we click the Pause button, a pop-up window will appear where we must enter a Pause Reason. After entering the reason, click on the OK button.

Pause button not visible in Salesforce flow

In the debug window, we can see that the Screen flow is paused.

Pause a Salesforce Screen flow in runtime

This way, we can Pause a Screen flow in Salesforce.

Resume a Paused Screen flow in Salesforce

To view the paused Screen flow or to Resume a paused Screen flow, follow the below steps.

1. Navigate to the Setup page and search, then select Paused and Failed Flow Interviews in the Quick Find box.

How to resume a Paused flow in Salesforce

2. In the Flow Interviews, we can see the screen flows that we have paused. To resume the flow, click on the dropdown arrow of the Flow interview and select Resume.

Click on the Name of Flow interview to view all the paused flow interview details.

Resume the Paused Screen flow in Salesforce

3. In the Flow interview, you can see the Flow Interview details like pause reason and Current Flow information.

How to run a Paused screen flow in Salesforce

4. As we click the Resume button, the flow will start exactly from where it was stopped.

Enter the fields we left blank while pausing the flow, and then click the Next button.

Resume the Paused flow in Salesforce

A record will be created as we click on the Next button, and the flow will be completed.

This way, we can resume a paused flow interview in Salesforce.

Since the flow interview is now completed, the paused flow will be removed from the Pasued and Failed Flow interviews list.

After making the changes and debugging the flow, Activate the flow so it can be used on the page where it is deployed.

Conclusion

In Salesforce Flows, the pause and resume feature allows us to halt a running flow for a specific time and again start the screen flow from where we stopped it.

You might have understood how to enable the Pause feature in Salesforce screen flows by following the above steps. We also learned to view and resume the paused flow interviews.

You might also like to read:

Agentforce in Salesforce

DOWNLOAD FREE AGENTFORCE EBOOK

Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

Salesforce flows complete guide

FREE SALESFORCE FLOW EBOOK

Learn how to work with flows in Salesforce with 5 different real time examples.