ServiceNow API parameter not being honored

kcritchnau
Kilo Explorer

I'm attempting to send a POST request via Postman to the incident table using the following body:

{"assignment_group": "AppSvcs_OES_OperationalApps", "cmdb_ci":"AMIGO 3", "caller_id": "KCRITCHN", "urgency": 2, "impact": 2, "category": "Application", "subcategory": "Functionality", "short_description":"Postman Test", "description":"Postman Test" }

Eventually this will be made as an AJAX request from my application, but for now I'm using Postman to explore the API functionality.

I have set the sysparm_input_display_value parameter to true, but none of the display values are being set. Here's the URL I'm using: {service-now instance URL}/api/now/table/incident?sysparm_input_display_value=true

Is there anything I'm missing here? 

 

5 REPLIES 5

Mike Patel
Tera Sage

https://hi.service-now.com/kb_view.do?sysparm_article=KB0534905

Mike Patel
Tera Sage

Whats the error you are getting. I'm able to use your code in postman and it was able to create incident with correct assignment group.

I'm not receiving an error, it's just not filling in the cmdb_ci, assignment_group, category, or subcategory fields. Basically anything that would be a lookup value. It's worked for me before, we just upgraded to Kingston from Istanbul so I'm not sure if that has anything to do with it. I can post the response I'm receiving tomorrow.

no problem, also try using version in api like below

{service-now instance URL}/api/now/v2/table/incident?sysparm_input_display_value=true