As y6ou might know, you can use the Junction activity to wait for multiple braches to complete before continuing.

This is a very nice feature but it does have a limitation. You can only select published data from one of the branches.

image

Some times you want to have for example 2 branches that does the same job in different ways (see picture above).

In this case you really want to map the result from both of the “Get checkpoint” to the Manage Checkpoint activity.

in this case the Junction is not the right choice!

Actually you can do a little trick and map multiple values to one field

It has its limitation too though. you have to make sure that only one branch is executed!! Otherwise your runbook logic will fail!

just link the branches directly to the next activity

image

and then map both of the published results to the field needed

image

A neat little trick is to use the Run .Net Script to merge the data into one published data

image

Inside  the Run .Net Script (Passthrough) you write this simple script:

image

creating one variable containing both of the mapped values and then you only have to configure the published data to publish the variable.

image

 

Great little way of simplifying multiple branches in orchestrator