Home Orchestrator

Create Related Object ID Field

Brad_ZimaBrad_Zima Member Adept IT Monkey ✭✭

I'm working on a runbook that is using the Create Related Object step but I'm running into a problem. When configuring the step it asks for the ID of the new object. I used Entity Explorer to determine this is the unique GUID for the related object. My question is how do I generate a new GUID to use for this object? I was hoping there was a variable similar to the Now() variable used for time but the documentation says otherwise. Does anybody have some advice?

Answers

  • Brian_WiestBrian_Wiest Customer Super IT Monkey ✭✭✭✭✭

    To meet this need all our Runbooks that have an action like adding a comment there is a preceding .net activity (PowerShell). In the activity basic script is a one line

    $GUIDComment = [guid]::NewGUID()

    That will generate the needed value to pass into new related objects.

  • Brad_ZimaBrad_Zima Member Adept IT Monkey ✭✭

    @Brian_Wiest That is how I eventually had to do it. I was hoping SCORCH would have some built-in way of generating them but it does not.

Sign In or Register to comment.