You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Load the function in your PS. .\Get-SCSMWorkItemParent.ps1
Get the Work Item Parent of a Runbook Activity
# Load the function in your PS# Get a Runbook Activity$RunbookActivity=Get-SCSMObject-Class (Get-SCSMClass-Name Microsoft.SystemCenter.Orchestrator.RunbookAutomationActivity$) -filter 'ID -eq RB12813'# Get the Runbook Activity's Work Item ParentGet-SCSMWorkItemParent-WorkItemObject $RunbookActivity
Get the Work Item Parent of a Runbook Activity using a GUID
# Load the function in your PS# Get a Runbook Activity GUID$RunbookActivity.get_id()
# Get the Runbook Activity's Work Item Parent from the RBA guidGet-SCSMWorkItemParent-WorkItemGuid $RunbookActivity.Get_id()