System Center Orchestrator 2012 Beta: Using “Common published data” to insert dynamic data.

This monday I published the article about a runbook using PowerShell to generate HTML Data.

Read it here:

http://blog.ctglobalservices.com/jgs/orchestrator-using-run-net-script-activity-powershell-inputting-and-returning-data/

In this article I will expand it a little, so that it also contains a Data/Time Stamp for when the data was updated.

So how do we do it?

  • Create the runbook, following the guide from the other article, or import the downloadable version.
  • Double click the “Write Web Page” Activity.
  • In the Text field add the following text below the “{HTML Output from “Run .Net Script”}” tag:

<tr><td colspan=2> Last Updated: </td> </tr>

  • this will add a new row to the table containing one cell that spans both columns.
  • in the space are “Last Updated: “, before the </td>. Right Click and select Subscribe -> Returned Data

image

  • You will see this window:

image

  • as you can see, we only have a few properties available, but we need the date/time for when the activity was started.
  • To make this available check the box “Show Common Returned Data”
  • As you can see, a lot of other properties is shown.
  • Select the property called “Activity end time”

image

  • Click OK
  • Click Finish
  • Now your modification is complete.
  • Test the runbook in the testing console.
  • The outputted html file should look like this:

image

That’s all for today!

You can use these “Common published data” for a lot of stuff, including loop conditions and filters!

Use your imagination! ūüôā

By | 2011-08-03T08:00:10+00:00 August 3rd, 2011|Automation|0 Comments

About the Author:

Jakob Gottlieb Svendsen

Twitter: @JakobGSvendsen

Jakob Gottlieb Svendsen is a Microsoft Cloud and Data Center Management MVP (http://mvp.microsoft.com/en-us/default.aspx), 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 http://blog.ctglobalservices.com/jgs

  • Co-founder: PowerShell User Group Denmark
  • Speaker at MMS 2016, Minneapolis (www.mmsmoa.com)
  • SCU Europe 2014, 2015, 2016 (www.systemcenteruniverse.ch)
  • Microsoft TechEd North America 2014, Houston
  • NIC 2012,2013,2014,2015, Oslo (www.nic.com)
  • Microsoft CampusDays 2011, 2013, Copenhagen
  • Microsoft TechDays 2015, Sweden (www.techdays.se)
  • 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

Training:

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

Leave A Comment