By using PATCH method in REST API need to update field values on two different tables

Sandy32
Tera Contributor

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.

5 REPLIES 5

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.

Scripted REST API Examples