PowerTip: Use PowerShell to Access Orchestrator Variables or Data

Doctor Scripto

Summary: Use Windows PowerShell to access the Orchestrator variables or published data.

Hey, Scripting Guy! Question How can I use Windows PowerShell to access the Orchestrator variables or published data from the data bus?

Hey, Scripting Guy! AnswerRight-click the middle of the script, click Subscribe, and choose Variable or Published Data as you normally would in Orchestrator.

Ensure that you enclose the subscribed data within quotation marks if the information is a string or Date/Time data, and then assign it to a Windows PowerShell object as you normally would:

$FooString=”{SomeCoolThingInOrchestrator}”

$FooNumber={ACounterOfSomeKind}

[Datetime]$FooDate=”{DateFieldfromOrchestrator}”

0 comments

Discussion is closed.

Feedback usabilla icon