Flow management is the work of keeping an org's flows understandable, reliable, and under control: knowing which flows run on each object and in what order, which version of each flow is active, which flows are obsolete, and what each flow depends on. Flow is now the main declarative automation tool in Salesforce, so orgs accumulate hundreds of flows and versions. Without management, automation becomes as hard to maintain as the Process Builder processes and workflow rules it replaced.
Common Flow Problems
- Several flows on one object with unclear run order and overlapping updates.
- Version confusion. The active version is not necessarily the latest version, and deployments can change which version is active.
- Execution context surprises. A flow running in system context can read and change data that the triggering user cannot.
- Obsolete flows and versions that clutter the org and hide the automation that matters.
- Side effects during data loads from record-triggered flows.
How to Approach Flow Management
- Inventory flows by object and type, including record-triggered, scheduled, screen, and autolaunched flows.
- Set run order explicitly for record-triggered flows on the same object.
- Check active versions and remove obsolete versions and inactive flows that are no longer needed.
- Review context and access. Confirm whether each flow should run in user or system context.
- Test before activation, using flow tests for record-triggered and autolaunched flows.
How Snapshot Helps
- Automation Switchboard Report: shows which flow definitions and other automation are active by object or metadata type, and deploys state changes with a saved baseline for restoration.
- Impact Analysis Report: maps the objects, fields, actions, and subflows a flow references, and what references the flow.
- Metadata Quality Report: editable AI checks for content problems in flows and other metadata, such as hard-coded logic.
- Forgotten Assets Report: flags inactive and unreferenced automation.
These reports describe flow configuration, not execution history or whether a flow produces the correct business result.
Metadata Types Involved
-
Flow: each flow version, includingrunInModefor execution context andtriggerOrderfor record-triggered run order, from 1 to 2,000. -
FlowDefinition:activeVersionNumberselects the active version and, when deployed, overrides the status of deployed versions. -
FlowTest: test inputs and expected outcomes for record-triggered, autolaunched, and Data Cloud-triggered flows.
Common Questions
How do I control the order of record-triggered flows?
Set a trigger order on each record-triggered flow for the same object and timing. The trigger order controls the order between flows, not the order of elements within a flow.
Why did a deployment change which flow version is active?
Deploying a flow definition sets the active version from the definition's active version number, which can override the status of the deployed flow versions.
Does system context mean a flow ignores all security?
System mode with sharing respects record sharing but not object and field permissions. System mode without sharing can access all data. Choose the mode deliberately.