- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2019 12:33 AM
I get error when I try to use Rest API's Put and Patch methods for case table. Could someone let me know how to update cases when there is trigger from external application? I want the script to read case Sys_ids dynamically.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 10:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2019 12:30 PM
Hi, I have just tested Rest 'PUT' and 'PATCH' for OOB vanilla NewYork directly into table 'sn_customerservice_case' without any issues.
You might have to explain your statement "I want the script to read case Sys_ids dynamically" ?
If you do not identify a valid servicenow record sys_id (for the table you are making the put\patch to) in your rest transaction then ServiceNow cannot know which record it needs to update.
The format for REST PUT\Patch is
https:// instancename .service-now.com/api/now/table/ table_name / sys_id ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 09:23 PM
What I meant with "I want the script to read case Sys_ids dynamically" is - I will be integrating SNOW with a third party app. Inputs and triggers for the cases will come from the third party app.
So whenever there is an update from the app, the cases should be created/updated. I believe sys_id should not be given directly and should be coded for Put and Patch. Correct me if wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 10:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 06:11 AM
Hi