Debug Flow Errors in Sandbox Org as Another User
Where: This change applies to Lightning Experience and Salesforce Classic in Essentials, Professional, Enterprise, Performance, Unlimited, and Developer editions.
Who: To enable this feature, you must have the Modify All Data, Manage Users, and Customize Application permissions. To use this feature after it’s enabled, you need the Manage Flows and View All Data permissions.
How: In Setup, go to Process Automation Settings and select the Let admins debug flows as other users checkbox.
Next open a flow in Flow Builder and click Debug. Select the Run flow as another user checkbox, and choose a user to impersonate.
The flow debug run then starts with you as the impersonated user. Review the debug details.
Debugging a flow as another user is available only for screen flows and autolaunched flows in nonproduction orgs. This feature supports flow elements and actions only. Any operations performed by screen components are performed as the logged-in user and not as the impersonated user. These screen components include custom Aura components, custom Lightning web components, and some standard flow screen components such as Lookup components.