This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get the ObjVer from ObjID to download files

Hello,

I am trying to improve the logic of an existent application that downloads files from MFIles using the COM API


My current solution is adding and applying some search conditions and using the  Vault.ObjectFileOperations.GetFiles(ObjVer) to get the files and loop through the results to download.

My goal is to improve this logic to use only the Obj ID (integer value)  to download reducing the need for many search conditions.


I am using this code to get the ObjID obj type from the integer but I cannot get the ObjVer from there.

var objID = new MFilesAPI.ObjID();
            objID.SetIDs(
                ObjType: (int)MFBuiltInObjectType.MFBuiltInObjectTypeDocument, ID: intObjID);

With the ObjVer I am confident I can move on downloading with what I already have.

Is there something it can be done? If so, could you please point me in a good direction?

Thank you in advance