Gets the version history for an item.



Code Sample


# Get the version history.

$itemIdentifier = 1000;

$versionHistory = $xia.GET_VersionHistory($itemIdentifier);

foreach ($versionRecord in $versionHistory.VersionRecord)

{

    Write-Host "Version $($versionRecord.VersionIdentifier)";

    Write-Host " Created: $($versionRecord.CreationDate)";

    Write-Host " Description: $($versionRecord.Description)";

    Write-Host " Username: $($versionRecord.Username)";