API Rest post incident display values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2017 10:06 AM
Hi guys,
I'm trying to post incidents using the Rest API in JSON format. In our system, we have dependent values which some of them are the same for different products.
The problem is when I try to post an incident with the categorization as display values (not the actual values) in SNOW appears with the wrong dependent one (from another product)
I have, for instance, the following categories and subcategories:
1.
Label: USI Value: USI
Label: ARCHIVE Value: ARCHIVE_USI Dependent value: USI
2.
Label: USI 2 Value: USI_2
Label: ARCHIVE Value: ARCHIVE_USI_2 Dependent value: USI_2
if I send the following:
{"u_product_component":"USI 2","u_component_detail":"ARCHIVE"}
In SNOW appears as:
Product Component: USI 2
Component Detail: ARCHIVE_USI
Expected result:
Product Component: USI 2
Component Detail: ARCHIVE
I have also tried to include "sysparm_input_display_value=true" in the URL but the result is the same
Any ideas will be appreciated!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2017 06:39 AM
I'm sure import set API can resolve your issue with the display value vs. value thing. I'm not 100% certain it can return the number of the incident created. You may want to consider a callback function/URL for that. E.g. once the incident is successfully created it could contact a URL on your end to say "Hey, this incident number was successfully created." Just a thought.