The CreatorCon Call for Content is officially open! Get started here.

REST API PUT method to update worknotes on given incident

sri26
Giga Contributor

Hi Team,

Can anyone please help me on how to update the worknotes as a request body using scripted rest api when user inputs the incident number.

Or

Is there any way to replace incident number instaed of sys_id in below API?

PUT https://itcinfotechdemo01.service-now.com/api/now/table/incident/0097fabadbf02c5065d944fa139619c2?sysparm_fields=number%2Cwork_notes

Please help me!

 

Thanks,

Sri

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Will you be using Scripted REST API or Out of the box table API

For OOB Table API - PUT You would require incident sys_id only

Regards
Ankur

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

Hi Ankur,

Yes we are using incident table.

Our client said they will be passing incident number to update work notes.

Is this possible?

Using scripted rest API?

Please help me!

 

Thanks,

Sri

Hi,

refer this link where I have given an example on how to create incident

On similar lines you can use for update

Help with code for a scripted inbound rest API / query incident table first

Regards
Ankur

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

@sri

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

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