Getting Version using DocumentObj 2.5 GetMetaData

Hi, I am trying to get the version number of an object using DocumentObj 2.5 GetMetaData.

In the documentation it says: psVersion - The version of the object. When no exact version is given, the version number will be returned.

My code is…
Dim myMetaData As String = ""
Dim myVersion As String = ""
Dim myFilter As String = "<ishfields><ishfield name='VERSION' level='version'/></ishfields>"
myMetaData = docClient.GetMetadata(gsMapGUID, myVersion, "en-US", "", myFilter)

I am getting the error: System.ServiceModel.FaultException`1: '[-145] The version number must be supplied. [145;VersionIsMandatory]'

Version > SDL Knowledge Center - Content Manager - Build 12.0.2417.0

Parents Reply Children