REST API document submission to Service now

GeoV
Tera Expert

An external entity will be sending json documents  to a table in servicenow

 

Table API

 
Allows you to perform create, read, update and delete (CRUD) operations on existing tables

Create a record
POST https://devXXXXX.service-now.com/api/now/table/{PreReg}

 The JSON document should go to a field doc

 

Hence the external entity should send the BODY  of the request as

http POST,  format body as below as per the API explorer
 
{"doc", "Your Json document"}
 
The external entity has a standard solution and will only send JSON document as full  body of the request and not have  relation to doc field . is there anyway the body of the request can by default  be inserted to doc field
1 REPLY 1

Mehta
Kilo Sage
Kilo Sage

No, With the table API you wont be able to do it as the table API work n with certain type of request body and the external entity will not be able to execute the API successfully. 

 

You can create the a scripted API where you have to handles all the requirements or you need to make the third entity understand that the oob API works in a certain way and they have to develop a solution for this. In most of the Rest Integration , the third party tools needs to create such custom solution before making an API Call.

 

Mark it Correct, It is resolves your Query.