Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get latest additional comments changes

kambleneeta20
Giga Expert

Hi experts ,

 

I am using below code in integration hub to get the latest additional comments in incident , however it is giving output "false" each time after updating the additional comments -

(function execute(inputs, outputs) {

outputs.cmt = inputs.incidentRecord.comments.changes();

})(inputs, outputs);

 

Can someone please suggest ?

5 REPLIES 5

Thanks for your reply.

However if additional comments changes then only it should display last comments, its not working as expected.