A subflow in Zoho Flow is a reusable set of actions or logic steps that can be incorporated into multiple flows. Rather than rebuilding the same sequence of steps each time a common process is needed, you define it once as a subflow and call it from any flow where it is required. This modular approach reduces duplication, makes your automations easier to maintain, and ensures consistency across related workflows.
When to Use a Subflow
Subflows are most valuable when the same sequence of steps needs to appear in more than one flow. Common examples include:
- A standardised notification process (for example, sending an alert to a Slack channel and logging an entry in a spreadsheet) that is triggered by several different events across different flows.
- A data enrichment sequence that looks up additional information from a third-party source and is needed at various points in your automation landscape.
- An error-handling or fallback routine that multiple flows should execute when a condition is not met.
- Any repetitive multi-step process that, if changed, would otherwise need updating across every flow individually.
Using a subflow means that if the shared process needs updating, you only need to change the subflow itself and the update applies everywhere it is used.
Creating a Subflow
- Navigate to the Subflows section. From the Zoho Flow left-hand navigation panel, select Subflows to access the subflow library.
- Create a new subflow. Click the Create Subflow button. Give the subflow a clear, descriptive name that reflects its purpose so it is easy to identify when selecting it from within a flow.
- Define input parameters. If the subflow needs to receive data from the calling flow (for example, a contact name or record ID), define these as input parameters. Each parameter specifies the name and data type of a value that must be supplied when the subflow is invoked.
- Build the subflow steps. Add actions and logic elements to the subflow canvas just as you would in a regular flow. Use the input parameters as variables wherever the externally supplied data is needed within the subflow steps.
- Define output parameters (optional). If the subflow should return data to the calling flow after it completes, define output parameters and map them to the relevant step outputs within the subflow.
- Save the subflow. Once the subflow is configured, save it. It is now available to be called from any flow in your account.
Using a Subflow Within a Flow
- Open the flow builder. Open an existing flow or create a new one where you want to incorporate the subflow.
- Add a subflow step. At the point in the flow where you want the subflow to run, click the add step button and select Subflow from the available options.
- Select the subflow. Choose the subflow you want to call from the list of available subflows in your account.
- Map input parameters. Supply values for each of the subflow's defined input parameters, either by entering static values or by mapping variables from earlier steps in the calling flow.
- Use subflow outputs (if applicable). If the subflow returns output parameters, these become available as variables in the calling flow once the subflow step has completed, and can be used in any subsequent step.
Managing Subflows
All subflows are listed in the Subflows section of Zoho Flow. From here you can view, edit, duplicate, or delete any subflow. You can also see which flows are currently using a given subflow, which is helpful when you are planning changes and need to understand the potential impact before making edits.
Note: Changes made to a subflow take effect immediately across all flows that use it. Test any updates to a subflow carefully before saving, particularly if it is used by flows that are currently active in production.
Benefits of Using Subflows
- Reduced duplication: Define a process once and reuse it across as many flows as needed.
- Easier maintenance: Update a shared process in one place and the change propagates automatically to every flow that calls it.
- Cleaner flow design: Breaking complex automations into smaller, named subflows makes individual flows easier to read and understand.
- Consistency: Ensures that shared processes always behave identically across all the flows that invoke them.
Need help? 1 Cloud Consultants can help you design a scalable Zoho Flow architecture using subflows and modular automation patterns that are easy to maintain and extend as your business grows.
Book a discovery call with 1 Cloud Consultants.