The following example gets the check out information for the specified item.



Code Sample


# Get the check out information for the specified item.

$itemIdentifier = 1234;

$checkOutInformation = $xia.GET_CheckOutInformation($itemIdentifier);

if ($checkOutInformation.IsCheckedOut -eq $false) { Write-Host "The item is not checked out."; return; }

Write-Host "The item was checked out on $($checkOutInformation.CheckOutDate) by $($checkOutInformation.Username)."