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.

Way to remove Additional Comments text when using $current.comments variable

Community Alums
Not applicable

Hello!  Has anyone found a way to remove the "Additional Comments" text highlighted in the screenshot?  I am using the ${current.comments} variable on my notification and the customer would like it removed but I haven't seen a way to remove it?

1 ACCEPTED SOLUTION

Hi Pete,


Does the below work (untested) ? :

 

notes = notes.replace('(Additional Comments)','');
***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

View solution in original post

6 REPLIES 6

Community Alums
Not applicable

That worked!  Much appreciated!!  Have a good one!

Hi @Paul Curwen 

       How can remove the date and time in the comment. Can you help me with that?