As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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
doc.getVersionSeriesId() should give you that.
doc.getVersionSeriesId()
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.
GetLiveDocument
You can try to use getSourceDocument:
getSourceDocument
coreSession.getSourceDocument(proxyDocument.getRef());
This way you get the original document. Once you achieve that, you can retrieve its identifier.