I need to query the impacted services.
With Incidents and Change Requests I already accomplished that.
But I would need to query the impacted services in Service Requests, Problems and Release Records as well.
Can someone guide me how to list the impacted services?
Thats what I use find certain impacted services on Incidents and Change Requests.
$rel = Get-SCSMRelationship -Name "System.WorkItemAboutConfigItem"
$WI = Get-SCSMClassInstance -Class (Get-SCSMClass -Name System.WorkItem.Incident) | ?{$.ID -eq "xxxxxx"}
$CIs = $WI.GetRelatedObjectsWhereSource($rel.ID) | ?{$.EnterpriseManagementObject.DisplayName -like "<query>"}
That doesn't work with Service Requests, Problems and Release Records.