ServiceNow API parameter not being honored
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2018 02:34 PM
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?
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2018 06:27 AM
Adding the version to the URL didn't seem to help. Here's the response I'm getting:
{
"result": {
"parent": "",
"made_sla": "true",
"caused_by": "",
"u_service_desk": "false",
"watch_list": "",
"u_call_back_number": "",
"upon_reject": "cancel",
"sys_updated_on": "2018-06-20 13:24:22",
"u_actual_end": "",
"approval_history": "",
"skills": "",
"number": "INC0817404",
"resolved_by": "",
"u_business_service": "",
"u_call_back_required": "false",
"sys_updated_by": "svc_amigo",
"u_closure_category": "",
"opened_by": {
"link": "{service-now instance URL}/api/now/v2/table/sys_user/0b1b1c4adbf34b00120dfbf9af9619be",
"value": "0b1b1c4adbf34b00120dfbf9af9619be"
},
"user_input": "",
"sys_created_on": "2018-06-20 13:24:22",
"u_fcr": "true",
"sys_domain": {
"link": "{service-now instance URL}/api/now/v2/table/sys_user_group/global",
"value": "global"
},
"u_attached_knowledge": "",
"state": "1",
"sys_created_by": "svc_amigo",
"u_actual_start": "",
"knowledge": "false",
"order": "",
"u_direct_from_email": "false",
"calendar_stc": "",
"closed_at": "",
"cmdb_ci": "",
"delivery_plan": "",
"u_parent_incident": "",
"impact": "2",
"active": "true",
"u_comments_and_work_notes": "",
"business_service": "",
"u_vendor": "",
"rfc": "",
"time_worked": "",
"expected_start": "",
"opened_at": "2018-06-20 13:24:22",
"business_duration": "",
"group_list": "",
"u_template": "",
"work_end": "",
"caller_id": {
"link": "{service-now instance URL}/api/now/v2/table/sys_user/238c07624fb943c48f87a35e0210c787",
"value": "238c07624fb943c48f87a35e0210c787"
},
"reopened_time": "",
"resolved_at": "",
"wf_activity": "",
"short_description": "Postman Test",
"u_itil_watch_list": "",
"correlation_display": "",
"work_start": "",
"additional_assignee_list": "",
"business_stc": "",
"u_notify_group": "",
"description": "",
"u_ap_vendor": "",
"calendar_duration": "",
"notify": "1",
"service_offering": "",
"sys_class_name": "incident",
"closed_by": "",
"follow_up": "",
"u_closure_subcategory": "",
"sys_id": "be9f9275137a9300baa951522244b034",
"contact_type": "phone",
"reopened_by": "",
"u_actual_duration": "",
"problem_id": "",
"reassignment_count": "0",
"activity_due": "",
"assigned_to": "",
"u_processor_id": "",
"severity": "3",
"u_reopen_flag": "false",
"comments": "",
"approval": "not requested",
"sla_due": "",
"due_date": "",
"sys_mod_count": "0",
"u_csm_alerts_sent": "false",
"sys_tags": "",
"u_task_requested_for": {
"link": "{service-now instance URL}/api/now/v2/table/sys_user/238c07624fb943c48f87a35e0210c787",
"value": "238c07624fb943c48f87a35e0210c787"
},
"u_closure_ci": "",
"u_reopen_count": "0",
"u_root_cause": "",
"escalation": "0",
"upon_approval": "proceed",
"correlation_id": "",
"u_business_area": "",
"location": "",
"u_solution_center_": "false",
"u_ap_company": ""
}
}
As you can see, the cmdb_ci, assignment_group, and other fields specified in the request are not being set.