cancel
Showing results for 
Search instead for 
Did you mean: 

automation : how to find a way to access real document linked to a proxy document

vieville_
Champ in-the-making
Champ in-the-making

In nuxeo automation, I don't see a way using the api to get, from a Document published in a section (this document is a Proxy document) how to get the identifier of the associated document stored in the workspace.

Any idea to solve this problem

5 REPLIES 5

Florent_Guillau
World-Class Innovator
World-Class Innovator

doc.getVersionSeriesId() should give you that.

Thank you for your interest to my question and your answer.

Please, will the future GetLiveDocument operation available in "content automation" 5.7.1 be the solution to get the real document from a proxy document ?

Yes GetLiveDocument will do that for you.

Hari_
Confirmed Champ
Confirmed Champ

You can try to use getSourceDocument:

coreSession.getSourceDocument(proxyDocument.getRef());

This way you get the original document. Once you achieve that, you can retrieve its identifier.