You are here:
Test a Data Cloud-Triggered Flow
Create, save, and run automated tests for a Data Cloud-triggered flow. Each time you modify the flow, run the test again to verify its behavior.
Required Editions
| View supported editions. |
| User Permissions Needed | |
|---|---|
| To open, edit, create, activate or deactivate a flow using all flow types, elements, and features available in Flow Builder, including Einstein and Agentforce for Flow: | Manage Flow |
We recommend that you test all possible paths through the flow so that you can find errors before they affect your users. For example, if users or inputs don't provide all the data that your flow requires, the flow fails. Add fault connectors to provide paths for users or the flow logic to correct the data so that the flow can finish successfully.
This procedure applies to Data Cloud-triggered flows. For record-triggered or autolaunched flows, see Testing Your Flow in Test Mode (Beta) instead.
-
Open the Flows list view.
- From the Automation app, select the Flows tab.
- From the Flows tab in any Lightning app, click the actions menu and select Open Flow.
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
Note that the Automation app and Flows tab options don't require Setup access. -
Open the flow version that you want to test.
- From the flow list screen in Setup, click
for the flow that you want to test, select View Details and
Versions, and then click Open. - From the flow list screen in the Automation or any Lightning app, click the flow's
Related tab. For the flow version that you want to test, click
, and then select Open Flow.
- From the flow list screen in Setup, click
- Click View Tests, and then click Create.
-
In the Set the Test Details, Trigger, and Path window, configure the test.
- Enter a label, API name, and description for the test.
- For Run the Test When a Record Is, select Created or Updated.
-
For Flow Versions to Test, add the flow versions to the Selected Flow Versions
column.
The flow test is available for each of the selected flow versions.

- Click Set Initial Triggering Record, and enter the values for the record that initially triggers the test.
- If an updated record triggers the test to run, click Set Updated Trigger Record, and then enter the record values.
- Click Set Assertions, and set conditions and custom failure messages for each assertion.
-
Save your changes, and then click View Tests.
The owner of the flow changes to the last person who edits the test.
-
Select the test that you configured, and then click Run.
Flow Builder runs the test and shows the result in the Result column.
Did this article solve your issue?
Let us know so we can improve!
