Hello raghulan,
I just quickly made an code example:
function Get-PropertyValueByItemNumber($number, $propertyName) {
$item = $vault.ItemService.GetLatestItemByItemNumber($number)
$itemRevision = New-Object Autodesk.DataManagement.Client.Framework.Vault.Currency.Entities.ItemRevision($vaultConnection, $item)
$props = $vaultConnection.PropertyManager.GetPropertyDefinitions("ITEM", $null, [Autodesk.DataManagement.Client.Framework.Vault.Currency.Properties.PropertyDefinitionFilter]::IncludeAll)
$propertyDefinition = $props[$propertyName]
$propertyValue = $vaultConnection.PropertyManager.GetPropertyValue($itemRevision, $propertyDefinition, $null)
return $propertyValue
}
Get-PropertyValueByItemNumber "100021" "State"This one is written in powerShell, I hope it helps you.
If you are interested: I used powerVault it's completly free to download, it's a set of powerShell commandlets which you can use to communicate with Vault instead of using the vault API. Altough you can also easly use the vault API like you see in my example.
If you would use powerVault you could just execute the "Get-VaultItem" commandlet, it returns an item object which has appended ALL properties which it has in vault.
Please mark this response as "Accept as Solution" if it answers your question.
If you have found any post to be helpful, even if it's not a direct solution, then please provide that author kudos! 😉The author,
PatrickcoolOrangewww.coolOrange.com