how to access the work notes or comments for a given incident through the REST API

veera donikela
Tera Contributor

Hi Team,

 how to get the work notes and comments for a given incident through the REST API integration  from one instance to another ServiceNow instance using GET method


thanks and regards 
veera
2 REPLIES 2

Basheer
Mega Sage

Hi @veera donikela ,

Expose the sys_journal_field table for the role which is accessing the data via REST integration

In this table you would have the table name, record id.

table name refers to incident

record id refers to the sys id of the incident

Do a glide record and using sysid access the comments and work notes

 

Mark helpful if this has helped you.

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @veera donikela ,

Please check the below links

https://www.saaswithservicenow.in/post/how-to-get-work-notes-and-comments-via-servicenow-api

https://timdietrich.me/blog/servicenow-table-api-comments-work-notes/

Thanks,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.