However when I use this web script and pass the {store_id}/{id} of a document that has a discussion, the web script replies that there are no posts, even if the document has many posts.
How can I get the posts on documents and on spaces that aren't type "Forum"?
A document 's discusion is saved as child associations to the document node. As far as I know there is no existing web scripts that handle multiple parent-childern relationship except the implied one.CMIS dose not support it either. So I guess you can't get the posts on documents and on spaces that aren't type "Forum" except you develop your custom web script
Thank you for your comment. Can you recommend anyone we can hire to develop a webscript to read posts, write posts, delete posts on document discussions?