Start a new topic

powerVault Search via API sample - return other attributes

Hello,


With powerVault in PowerShell, I am successfully utilising Vault search via API, based on the sample functions provided in the very helpful coolOrange VaultSearch.zip bundle. 


I notice that that only a particular set of object attributes are returned in the search results, e.g.:


FileRev : Autodesk.Connectivity.WebServices.FileRev

FileLfCyc : Autodesk.Connectivity.WebServices.FileLfCyc

Cat : Autodesk.Connectivity.WebServices.FileCat

Id : 3548117

Name : X77TRA0GD090-01.ipt

VerName : X77TRA0GD090-01.ipt

MasterId : 3171295

VerNum : 20

MaxCkInVerNum : 20

CkInDate : 5/06/2020 9:46:36 AM

Comm : Model complete

CreateDate : 5/06/2020 9:46:36 AM

CreateUserId : 2

Cksum : 304485624

FileSize : 131072

ModDate : 24/09/2019 1:48:13 PM

CreateUserName : Administrator

CheckedOut : False

FolderId : 2860749

CkOutSpec :

CkOutMach :

CkOutUserId : -1

FileClass : None

Locked : True

Hidden : False

Cloaked : False

FileStatus : Unknown

IsOnSite : True

DesignVisAttmtStatus : None

ControlledByChangeOrder : False


I wonder if there is a way to return other attributes for the objects located by Search, e.g. Revision, please?

 

Thanks for any advice.

1 Comment

Hello Neil,

This is the object that is returned by the Vault API.

You can access the Revision using:

$result.FileRev.Label


With powerVault you could use Get-VaultFile or Get-VaultFiles to get a powerVault file object which includes all the properties that are listed on the wiki page including the Revision.


Kind regards,

Manuel Cassan

Login or Signup to post a comment