REST API PUT method to update worknotes on given incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2020 05:45 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2020 06:00 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2020 06:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2020 06:27 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2020 05:33 AM
@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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader