Hi I hope you are fine,
I would like to pull object linked to a document object via any property as shown in this image via COM API. So, I want to get projects, owner, customers and contact person
Hi I hope you are fine,
I would like to pull object linked to a document object via any property as shown in this image via COM API. So, I want to get projects, owner, customers and contact person
I have got the response so how to loop through the objects and also get by which property in linked with. Since if I use objectVersion I can't access the property used
This API method simply returns the objects. The way you loop through depends upon the language you're using, but they are collections so it should not be too difficult.
The property used to refer to these is not returned by this API method. Remember that relationships can go in either direction (either from "subcontracting agreement", in your screenshot, or from the related object), so the property could exist on either. You would have to load the various objects and check their properties if you need to know which, or you use the mode parameter on the above API method to only return the ones "from" (then check against the source object's properties), then call it again with "to" (and then check against the target objects' properties).
© 2025 M-Files, All Rights Reserved.