Skip to content
Back to articles

Flow · Practical guide

Test Salesforce screen flows safely with rollback mode

A practical sandbox checklist for testing record updates without confusing a debug run with a full release test.

Suppose a screen flow lets a support agent update a case and create a follow-up task. Before releasing it, test the decision paths and confirm that the agent can recover from an error. The example below uses fictional sandbox records.

Start with a controlled sandbox example

  1. Create a case clearly labelled as test data and record its starting values.
  2. List the expected results: which fields change, whether a task is created, and what the user sees.
  3. Review the flow for record deletion, email actions, integrations and subflows before running it.

Check the debug options before running

Salesforce warns that a debug run without rollback mode can execute real record changes and Apex actions. Closing the flow is not an undo button. Where the debugger offers rollback mode, select it before testing. Do not assume it reverses external side effects or work committed in an earlier transaction.

Exercise both outcomes

Try a valid update, then a case with a required input missing. Use separate sandbox examples for these scenarios. Confirm the success message, inspect the selected decision branches, and check that any fault path explains a useful next action. Compare the resulting case and task records with your written expectations.

Finish with a realistic release test

After checking the logic, run a controlled end-to-end sandbox test through the same entry point and user permissions intended for production. Verify other automation and any integration in a test environment. This is a recommended testing workflow, not a claim that one successful debugger run proves the release is safe.

Know the transaction boundary

Salesforce documents that an action configured to start a new transaction commits earlier operations first; a later failure cannot roll back those earlier commits. Debug support also depends on the action settings. Review transaction behavior whenever your flow performs a callout.

Official references

Published October 10, 2026. Official references checked October 10, 2026. Flow testing controls vary by flow type and release.

Browse all articles