Update Item
Update an existing item.
- Connect to the configuration web service.
- Set the unique identifier of the required item.
- Specific code can be written based on the item type.
- The item must be checked out and checked back in.
- The user must have write permissions to the item.
Code Sample
# Get the existing item.
$item = $xia.GET_Item(1234, 0);
# Check out the item.
$xia.DO_CheckOutItem($item.ItemID);
# Modify the item.
$item.AssetTag.Overridden = $true;
$item.AssetTag.Value = "A12345";
# Update the item.
$item.VersionDescription = "Updated the asset tag";
$xia.SET_Item($item);
# Check in the item back in.
$xia.DO_CheckInItem($item.ItemID);