Articles in this section

Manage branching in your flow

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.

Choose a view which is easy and efficient for you as you make changes and manage branching, that is, a view with or without the input and output pane.

-add-branching-view-option.png

Add branchings

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 should 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.)

  1. Click BuildFlow builder to create a flow. Or, select an existing flow.

  2. In Destination & Lookups, click the plus sign (+) next to a flow step. From the list, select Add branching.

    add-branching-option.png
  3. 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" 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-name.png
  4. Branching type: Choose either the First matching branch or All matching branches. For more information, see Apply branching to your flow.

    branching-type.png
  5. Define branch rules: Two branches are automatically included in the Add branching window with default names Branch 1.0 and Branch 1.1.

  6. Edit the default name and description for the branches.

  7. If you want to add another branch, click + Branch and configure details. (You can also reorder , clone, or delete branches.)

    Add-branch-in-branching.png
  8. Configure conditions in each branch using either Rules or JavaScript.

  9. Click Preview and check if you have the required results.

    • Input – Preview the input data/record for branching.

    function_input.png
    • 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.

    function_output.png
  10. Click Save and close.

Edit branchings

You can rename the branching or edit the branches within a branching in your flow. You can add description, reorder, clone, merge, unmerge, or delete branches. Note that the Add branching and Edit branching windows have the same fields. You can also delete a branching.

  1. In Flow builder, click the branching router icon. The Edit branching window opens.

    edit-branching-updated.png
  2. If required, enter a new name for the branching if you want to edit the name because of scope changes or for any other reason.

    edit-branching-name.png

    When you save the branching, you can see this new name in Flow builder if you hover over the branching router icon.

  3. If you haven't already changed the default names of the branches, edit the branch name and description.

  4. If required, reorder, clone, or delete,ranches.

  5. 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.

  6. Click Preview and check if you have the required results.

  7. Click Save and close.

Delete branchings

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:

  1. Click the branching router icon. The Edit branching window opens.

  2. In the Edit branching window, click the overflow menu (...) in the top-right corner. Select Delete branching.

    delete-branching.png
  3. Read the message and choose a branch you'd like to retain.

    delete-branching-2.png
  4. Select Delete branching.

Tip

You could create a snapshot of your integration before you delete a branching, especially if the integration is in the production environment.

Sample branching flows

Branching after a merge

branching-after-a-merge.png

Branching within a branch

branching-within-a-branch.png

Single branch in a branching

branching-single-branch.png

Empty branch (branch with no conditions) in a branching

branching_with_empy_branch.png