Branching allows you to quickly build complicated flows, especially if you have a workflow with multiple applications and data formats. You can create or edit a branching based on your requirements.
You can add branching to a flow when you want to split the data from a step into different parts for further processing. This feature is available for imports and lookups.
Tip
You can easily reorder steps by dragging and dropping them to a different location in your flow. This option can be useful while planning, designing, or testing your flow. All associated tools, such as mappings and filters, move along with the step, preserving your configurations. It's a good practice to check and update your configuration if required after you've reordered any step.
When you add branching, you must name the branching and configure these components.
Components |
Configure… |
---|---|
Branching type |
The way in which records must match conditions in all the branches, that is, sequentially or in parallel. |
Branches |
The conditions that records must match in each branch to flow through. (You must also provide a suitable name and description for each branch.) |
-
Click Tools > Flow Builder to create a new flow. Or, select an existing flow.
-
In Destination & Lookups, click the plus sign (+) next to a flow step. From the list, select Add branching.
-
In the Add branching window, enter a name for your branching. You can provide a name that indicates what the branching represents or does in the flow. For example, Inventory branching or Tiered support branching. (If your branching name is long, it's shown partially on the Flow builder, but you can see the full name if you hover over it.)
-
Branching type: Choose either the First matching branch or All matching branches. For more information, see Apply branching to your flow.
-
Branches: Two branches are automatically included in the Add branching window with default names Branch 1.0 and Branch 1.1
-
Edit the default name and description for the branches.
-
If you want to add another branch, click + Add branch and configure details. (You can also reorderor delete branches.)
-
Configure conditions in each branch using either Rules or JavaScript.
-
Click Preview and check if you have the required results.
-
Input – Preview the input data/record for branching.
-
Output – Preview the branch index and name into which the record will move, that is, the first branch that matches or all branches that match the filter condition based on your configuration.
-
-
Click Save and close.
You can edit a branching that you’ve added to your flow. At a more granular level, you can rename the branching, as well as rename, reorder, merge, unmerge, or delete branches. You can also delete a branching. Note that the Add branching and Edit branching windows have the same fields.
-
In Flow builder, click the branching router icon.
-
If required, in the Edit branching window, you can edit the branching name.
-
If you haven't already changed the default names of the branches, edit the branch names.
-
If required, refine filter conditions using either Rules or JavaScript. The default option is the Rules format. You can click JavaScript in the top-right corner and edit your script.
-
Click Preview and check if you have the required results.
-
Click Save and close.
You can delete a branching. However before you delete a flow branching, it’s good to carefully check whether it’s likely to have an impact on subsequent flows in your process.
To delete a branching:
-
Click the branching router icon. The Edit branching window opens.
-
In the Edit branching window, click the overflow menu (...) in the top-right corner.
-
Select Delete branching. Read the Confirm delete message, then click Delete.
Tip
You could create a snapshot of your integration before you delete a branching, especially if the integration is in the production environment.