Get incident work notes from API

evyatar
Giga Contributor

Hi,

I want to get the incident work notes from api, I have been added some work notes as follow:

find_real_file.png

And trying to get the ticket from api (GET request to https://XXXX.service-now.com/api/now/table/incident/SYSID)

And the "work_note" is empty, so how can I got the work notes lists?

And how can I create from API work notes and related it to exist incident?

Thanks!

7 REPLIES 7

Have you used the REST API Explorer?   You can use it to build your API.   I took the details from it and used it in PostMan and it updates work notes just fine:


find_real_file.png


find_real_file.png


kamalsoni
Tera Expert

Hi,



If i have understood your question correctly , that you want to modify any incident using table API.



Then you can use put method of REST and provide the sys_id of the incident and add parameters that you want to modify.



Please find below the sample, that i have modified the work_notes using API.



PUT https://XXXXX.service-now.com/api/now/table/incident/fb810b9bdb52030017f4f11ebf9619b1?sysparm_display_value=work_notes_list%3DXYZ

Viraj Hudlikar
Tera Sage

Hi @evyatar 

 

Have a look at this LINK.

 

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.

Thanks & Regards,
Viraj Hudlikar.