Get Relationships
The method gets the relationships between an item and other items within the system.
- Connect to the configuration web service.
- Specify the identifier of the item.
Code Sample
# Get the relationships.
$relationships = $xia.GET_Relationships(1234);
# Display relationship information.
foreach ($relationship in $relationships.Relationship)
{
Write-Host "$($relationship.TargetName) [$($relationship.TargetItemID)]";
Write-Host $relationship.DirectionString;
Write-Host $relationship.RelationshipTypeString;
Write-Host;
}