incident comment API

Shabbir1
Tera Contributor

Hi Team,

We need to share incident comments via using API we have developed this API by using REST API explorer incident table API. So, we able to fetch the response but customer wants only latest(updated) comment. Could you please help on this, how to fetch only latest comment. 



Thanks & Regards,
Gori

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Shabbir1 

it would be nice if you could share how are you sending the API?

Is it via BR or flow?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

HI Ankur,

 

i have used rest API explorer to create API ( table = incident) sharing screen shot for reference, but it is giving the all comments in the incident but customer wants only latest comment

 

API : 

https://dev241285.service-now.com/api/now/table/incident?sysparm_query=number%3DINC0009009&sysparm_d...

 

Shabbir1_0-1714022446151.png