Find API and Request body

Ramesh68
Tera Contributor

HI Community,

 

If I create an Incident via Postman using Table API, How to find out API and Request body in ServiceNow?

I have other scenario similar similar like this  Incidents are created by other integration system but other systems highlighting they have not sent the value in request body.

 

 

 

4 REPLIES 4

Community Alums
Not applicable

Hi Ramesh,

This Video should help you at a whole to understand the concepts :

https://www.youtube.com/watch?v=vde7yeyayDU&t=970s

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Hi Sandeep

 

I want to see what is the body parameter passing while creating Incident?

We dont have access in other system.

Community Alums
Not applicable

Refer to the video , it will tell you.

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Ramesh,

First, mandatory fields in Incident are "Caller" and "Short description" so these fields must be specified when adding a new record.

I usually use REST API Explorer to get the data body.

  1. From Navigator, go to "System Web Service" > "REST" > "REST API Explorer".
  2. Select POST and Incident table as follows.
    find_real_file.png
  3.  Move down the page and click on the "Add a field" button.
    find_real_file.png
  4. Add fields to send and enter their values. Request body json string is shown below the fields.
    find_real_file.png
  5. Test sending a data and check to see that the record is inserted. If a record is inserted, copy the json string and use it in request body changing the values to those required.