You are viewing limited content. For full access, please sign in.

Question

Question

Volume name not returned with documentinfo

asked on October 10, 2014

Hi All,

I am trying to return the volume name from documentinfo but just get an empty field.

        Dim Doc As DocumentInfo = New DocumentInfo(DocID, mySess)

        Dim MyVolume As String = Doc.VolumeName

Also in the search results the volume name is missing 

VolumeName = results.GetDatumAsString(k, SystemColumn.VolumeName)

I can get the document ID and the name anyone know how to get the volume and volume path from the sdk (RA)

 

Andrew

0 0

Answer

APPROVED ANSWER
replied on October 10, 2014

The Volume property is empty because you've only instantiated a new DocumentInfo object, you haven't actually created a document.

You would need to retrieve an existing document (using Document.GetDocumentInfo), which would then let you get the Volume of the existing document.

1 0

Replies

replied on October 10, 2014

Something like this

Dim Doc as DocumentInfo = Document.GetDocumentInfo(DocId, mySess)

doc.VolumeName should then return a value.

1 0
replied on October 14, 2014

sorry was setting docid as a string not an int

 

Andrew

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.