cancel
Showing results for 
Search instead for 
Did you mean: 

Retrive comments for a document using CMIS

dialogues
Champ in-the-making
Champ in-the-making
Hello,

Is it possible to retrieve the comments attached to a document ?
How ?
I saw that cmis:checkInComment is given when searching, but not comments…

Thanks for advance
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Not directly, because comments are stored as children of the document on which they are commenting, and CMIS only supports parent-child relationships for folders and their children.

However, comments are implemented as forum posts, and objects of that type (fmSmiley Tongueost) are queryable. I just don't see an obvious way to relate the comments you'd get back from such a query to the documents they correspond to.

Jeff

dialogues
Champ in-the-making
Champ in-the-making
Thank you.

sharifu
Confirmed Champ
Confirmed Champ
I have a js file which runs on document update. I want to get the comments data. I have managed to get the versioning number


${document.properties["cm:versionLabel"]}

How can I do this?