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 particular count number of additional comments

Priya Reddy I
Tera Contributor

Hi Team, 

 

   Can anyone help me how to the get 3rd additional comment from request?

1 REPLY 1

Anurag Tripathi
Mega Patron
Mega Patron

Hi Priya,

The below would give you first 3 comments, form there you can pick the oldest.

gr.comments.getJournalEntry(3)
 
gr is the glide object to the record, you can use current of object to the record.
-Anurag