cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add a comment to a document via an automation chain?

nomennescio_
Champ in-the-making
Champ in-the-making

Most information regarding a document is modifiable in some way in Studio, but I haven't found anything to manage comments.

The closest I've found is the CommentManager class, but I have not been able to get that to work in a Run Script

CommentManager cm = Framework.getService(CommentManager.class);

This errors with the message

An error occured while executing the chain 'TestChain': [Error: could not access: class; in class: java.lang.Class] [Near : {... Unknown ....}] ^ [Line: 1, Column: 0]

I don't know if this is the correct route or if it's even possible.

1 REPLY 1

Thierry_Martins
Star Collaborator
Star Collaborator

hello,

you just need to do

cm = Framework.getService(CommentManager);

regards, Thierry

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.