Articles in this section

Merge and unmerge branches in a flow

Merging lets two branches continue to the same next step, so you don't have to repeat that step in each branch. A merge combines how the branches continue processing, not the data the branches carry. This article explains what a merge does, how to merge and unmerge branches in Flow builder, and what to avoid.

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.

What a merge does

A merge doesn't combine data from the branches back together. It merges the processing path, so pages of data from the branches continue to the same downstream step.

For example, a page of data from your source contains two records. You branch the flow so one record goes down one branch and the other goes down another. You have two pages of data, each with one record. After you merge the branches, you still have two pages of data, not one page with two records. Both pages then continue to the next step.

Merging branches doesn't combine the results of parallel lookups into one record.

Restrictions

  • You can't merge a branch back into the step it branched from.
  • The merge icon is disabled in a linear flow, because a merge applies only when a flow has branches.
  • If you merge branches in a branching that uses All matching branches, records that match more than one branch are duplicated after the merge.

Merge branches

  1. Drag the merge icon at the end of a branch toward another branch. The possible merge paths and merge targets appear in light blue.
  2. Drop the icon on the merge target you want. The target changes to dark blue to show the merge succeeded.

A merged block appears on the canvas, and a new merged step is added automatically.

Unmerge branches

  1. Select the merge point where the branches join. The merge point shows the tooltip Merge point (records from branches are merged here).
  2. Select the branch to unmerge, for example Unmerge Branch 1.0.