You can add branching to a flow when you want to split the data from a step into separate paths for further processing, such as routing records to different destinations or lookups. This article shows you how to add a branching in Flow builder, name it, choose a branching type, define its branches, and preview the result.
Before you start, read Branching overview to choose between First matching branch and All matching branches.
Prerequisites: Manage permission, Administrator role, or account owner — You must have the Manage permission on the integration, the Administrator role on the account, or own the account. For details, see Manage user roles & permissions to an account.
Add a branching
- Go to Build
, and then select Flows. Select + Create, and then select Create flow, or open an existing flow.
- Select the plus sign (+) before or after a step, then select Add branching. Branching is available for imports and lookups.
- In Branching name, enter a name that describes what the branching does in your flow, such as "Inventory" or "Tiered support." Long names are truncated on the canvas; hover over the branching to see the full name.
- Under Branching type, select First matching branch or All matching branches.
- Under Define branch rules, select the name of each default branch, Branch X.0 and Branch X.1, to rename it.
- To add a description, select the Actions
menu at the end of the branch header, and then select Add description. Enter the description in the Add description pane, and then select Save. Select Close to return to the dialog. The same menu also has Clone branch, Clear all conditions, and Delete branch.
- To add another branch, select + Branch, and then configure it. You can add up to 25 branches.
- Configure the conditions for each branch. For steps, see Configure branch conditions.
- Select Preview to check the results.
- Input shows the record that enters the branching.
- Output shows the index and name of the branch the record moves into: the first matching branch, or all matching branches, depending on the branching type.
- Select Save & close.
The branching router icon appears on the canvas. Hover over it to see the branching name, and select it to edit the branching.
Next steps
To rename, reorder, clone, or delete branches, see Edit and organize branches in a flow. To bring branches back together, see Merge and unmerge branches in a flow.