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.

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

  1. Click Tools > Flow Builder to create a new 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-updated.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 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_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. Branches: 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.

    edit_branch_name_desc.png
  7. If you want to add another branch, click + Add branch and configure details. (You can also reorderor delete branches.)

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

  1. In Flow builder, click the branching router icon.

    edit_branching.png
  2. If required, in the Edit branching window, you can edit the branching name.

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

  4. If required, reorder, delete, or add branches.

  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.

    delete_branching.png
  3. 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.

Sample branching flows

Branching after a merge

8512730976667-branching_after_merge.png

Branching within a branch

8512784951451-branching_within_a_branch.png

Single branch in a branching

8512780519835-single_branch_in_a_branching.png

Empty branch in a branching

8512787509531-empty_branch.png
Was this article helpful?
0 out of 0 found this helpful

Comments

12 comments
Date Votes
  • Whenever I change something in the branching input it removes the complete input and then it gives me a red input box (error). Cannot save anymore. Seems like a bug. I can also not report a bug as I cannot select bug in the general feedback. So that's why I posted it here.

    Also I cannot move any flow steps anymore. I am using Celigo on EU platform. And using Chrome Version 105.0.5195.102 (Official Build) (arm64)

    1
  • Hi Nuri,

    Thank you so much for taking time to provide this feedback.We have identified this issue internally and will get it fixed soon.

    Thanks & Regards,
    Vikram

    0
  • Hi Nuri Ensing,

    Just to clarify, Vikram is referring to the bug you discovered. Thank you so much for taking the time to let us know! As far as drag-and-drop, thank you for letting us know that you rely on this functionality. When we added flow branching, we had to temporarily remove that functionality, so it should be re-added in a later release. I've let the PM for this project know, so he may provide more details.

    0
  • I came here to report the same two bugs that Nuri mentioned:

    1. Cannot edit the input of branching.
    2. Cannot reorder flow steps.

    Being able to reorder flow steps is critical for maintaining our existing flows that do not incorporate branching and also is needed to correct flow configurations during development. How soon could we get this feature added back? 

    1
  • I'm having the above issues, but also having some others.

    1- using Delta Export Type leads to the flow cancelling by itself (workaround by using adjusted timestamp instead of Delta).

    2- Ignored true/false value is not merged back into the record using the result mapping (I'm using one-to-many).

    3- Cannot change a record to ignored = true via Post Submit Script.

    0
  • Hi Fabio Dias,

    Thank you for reporting this.
    We tried to replicate this but unable to reproduce.
    Could you please log a support case for the same and provide the flow configuration .

    Thank you,
    Vikram

    0
  • Hi Vikram Thakre,

    I've opened a ticket with the issues as requested.

     

    The other issue I'm facing is that the previews are only working for me if the first record of the source passes through that branch.

    ie. Source has 3 ids, each branch matches 1 ID, only the first ID of the source will work for previews.

     

    Thanks!

    0
  • Hi Quentin McRee and Nuri Ensing,

    Cannot edit the input of branching issue has been fixed.
    Could you please check and let me know if the issue still persists.

    Thanks,
    Vikram

    0
  • Hi Vikram Thakre
    Checked and it works. 
    Thanks for the update!

    0
  • Hi Fabio Dias,

    Under input panel we are showing only first record coming from export side.If you select first matching branch then router preview will only show the output as per the data under input panel.

    But in run time it will check the data sequentially through each branch.

    For example -Input have 3 records with 3 ids, each branch matches 1ID.
    In run time, first record will go to branch with index 0 and check the condition you have given in router .If it matches then the record will go to branch first else it will check for second and third branch.
    Same sequence it will follow for 2nd and third record .

    Thanks,
    Vikram






    0
  • I love the idea of this feature and I'm going to get some great use out of it. One thing this can solve is having the same filter criteria on multiple Destination/Lookup components, and it makes the flows way easier to understand at a glance by making them more flowchart-like in appearance. I've been using it for a month or two in a couple of flows that will soon be in Production.
    But in most of the other flows I've tried it in, I encounter errors with it that I can't google, and I end up abandoning branching. I have a suspicion that it doesn't like it when a branch contains no Destinations/Lookups and then merges back into the main branch later, and this is something I've wanted to do more than once, basically "only run these three steps if X, else skip over them".

    0
  • Hi Geoff Tipley ,

    Thank you Geoff for your valuable feedback.
    We are looking into this and will provide the more updates on the CS case raised for the same issue.

    Thanks,
    Vikram

    0

Please sign in to leave a comment.