SCO 2012 Tricks: How to handle/join published data from multiple branches in a runbook


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.


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


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


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


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


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



Great little way of simplifying multiple branches in orchestrator

By | 2012-07-04T10:14:46+00:00 July 4th, 2012|Automation|1 Comment

About the Author:

Jakob Gottlieb Svendsen

Twitter: @JakobGSvendsen

Jakob Gottlieb Svendsen is a Microsoft Cloud and Data Center Management MVP (, Working as Global Lead Developer, Senior Consultant and Trainer at CTGlobal, where he is one of the driving forces in keeping CTGlobal a System Center Gold Partner and member of the System Center Alliance.

Since he started at Coretech in 2007, he has focused on Scripting and Development, primarily developing tools, extensions and scripts for the System Center Suite. His main area is Automation (including OMS/Azure Automation, Service Management Automation, PowerShell and Orchestrator). Another area is Windows Azure Pack / Azure Stack, where he does implementation, development, workshops and presentations. He is a world-wide renowned voice in the Automation field.

He is passionately devoted to the community, to which he contributes by being a moderator at TechNet and sharing his knowledge at

  • Co-founder: PowerShell User Group Denmark
  • Speaker at MMS 2016, Minneapolis (
  • SCU Europe 2014, 2015, 2016 (
  • Microsoft TechEd North America 2014, Houston
  • NIC 2012,2013,2014,2015, Oslo (
  • Microsoft CampusDays 2011, 2013, Copenhagen
  • Microsoft TechDays 2015, Sweden (
  • Microsoft Partner Event: New in SC2012 SP1
  • User group meetings (PSUG.DK , SCUG.DK/BE/NO, AZMUG + more)
  • Microsoft Certified Trainer.
  • Microsoft Scripting Guys Forum Moderator

Main working areas:

  • Automation (Azure Automation, SMA, SCO)
  • Windows Azure Pack / Azure Stack
  • System CenterVisual Studio Team Services / Team Foundation Server
  • Development:C#.Net, VB.NET, VBScript, PowerShell, Service Manager, OpsMgr, ConfigMgr
  • Orchestrator
  • Windows Azure Pack / Azure Stack


  • Azure Automation
  • Service Management Automation
  • System Center Orchestrator
  • PowerShell, VBScript, C#.Net, VB.Net
  • Windows Azure Pack / Azure Stack Development Workshops

One Comment

  1. Felix Uelsmann October 16, 2017 at 14:44 - Reply

    this could be very helpful if I knew where to get the activities from. Do these Checkpoint Activities have an integration pack?

Leave A Comment