Loading
Prepare for Email to Become the Default Login ExperienceRead More
Automate Your Business Processes with Salesforce Flow
Set Flow Run Context

Set Flow Run Context

Override the default run context of a flow to control what data it can access. Run a flow in system context with or without sharing, or enforce user-level access regardless of the caller.

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
  • Open the flow in Flow Builder.
  • Click View properties.
  • Click Show Advanced.
  • In the How to Run the Flow dropdown, select a context.
    Note
    Note If the dropdown isn’t available, you can’t change the flow run context for the type of flow.
    • User or System Context—The context is determined by how the flow is launched.
    • User Context–Enforces User Permissions—The flow always runs with the running user’s access level, even if its caller runs in system context. This option is available for screen flows and autolaunched flows on API version 68.0 and later.
    • System Context with Sharing—The flow respects org-wide default settings, role hierarchies, sharing rules, manual sharing, teams, and territories. But it doesn’t respect object permissions, field-level access, or other permissions of the running user.
    • System Context without Sharing—The flow can access all data.
 
Loading
Salesforce Help | Article