Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
DictionarySSubflow
AutomationIntermediate

Subflow

In Salesforce Flow Builder, a flow element that calls another flow as a reusable component within the current flow, passing input variables and receiving output variables, enabling modular flow design.

§ 01

Definition

In Salesforce Flow Builder, a flow element that calls another flow as a reusable component within the current flow, passing input variables and receiving output variables, enabling modular flow design.

§ 02

In plain English

👋 Study buddy

A Subflow in Salesforce Flow Builder is a flow element that calls another flow as a reusable component within the current flow. You pass input variables in and receive output variables back, enabling modular flow design where common logic is built once and reused.

§ 03

Worked example

scenario · real-world use

Brookwell Capital builds a complex Lead-conversion Flow that handles many edge cases. Rather than putting all the logic in one giant Flow, the dev decomposes shared sections into Subflows. A "Validate Email Domain" Subflow is called from three different parent Flows; a "Send Welcome Email" Subflow is called from another two. When the welcome-email logic changes, the dev edits the Subflow once; all parent Flows pick up the change. Subflows are how Flow Builder supports modular, reusable automation - the equivalent of methods in Apex.

§ 04

Why Subflow matters

In Salesforce Flow Builder, a Subflow is a flow element that calls another flow as a reusable component within the current flow, passing input variables and receiving output variables, enabling modular flow design. Subflows are how you build reusable logic that multiple flows can share, avoiding duplication.

Subflows are foundational to scalable flow architecture. Without them, common logic (like validation, enrichment, or notification patterns) would be duplicated in every flow that needs it. With subflows, the common logic is built once and called from many flows. Mature flow architectures use subflows extensively for reusable patterns, treating them as shared components in a flow library.

§ 05

How organizations use Subflow

BrightEdge Solutions

Built a library of reusable subflows for common patterns like validation and notification.

NovaScale

Uses subflows to avoid duplicating logic across their flow portfolio.

Cobalt Ventures

Treats subflow design as foundational to scalable flow architecture.

§

Trust & references

Official documentation

Straight from the source - Salesforce's reference material on Subflow.

Was this entry helpful?
Help us write better definitions. Quick reactions or detailed edit suggestions.
§

🧠 Test your knowledge

Q1. What is a Subflow?

Q2. How do they communicate?

Q3. Why use subflows?

§

Discussion

Loading…

Loading discussion…