By using PATCH method in REST API need to update field values on two different tables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2018 03:17 AM
By using PATCH method in REST API need to update field values on two different tables over single payload, like for service catalog need to update few variables on custom table and stage field on global table.From 3rd party tool to SNOW,Can you please help/guide me.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 04:47 AM
Scripted REST APIs don't specify a table (unless you make it a URL parameter or payload parameter.) For example: your endpoint might be something like:
https://YOURINSTANCE.servicenow.com/api/x_snc_myapp/updater
You can pass URL parameters or in the request body. Everything is completely up to you. Once you have the parameters you need (table, fields, values, whatever) you can do server side code to your hearts content.