How to get choices labels for sys_class_name in REST request to a given table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2019 01:34 AM
Hi,
I am invoking the following REST request URL:
https://{instance}.service-now.com/api/now/table/cmdb_ci_app_server?sysparm_limit=10&sysparm_fields=operational_status,sys_id,name,short_description,sys_class_name,&sysparm_exclude_reference_link=false&sysparm_query=operational_status=1
The response shows that the sys_class_name value is the default table name, i.e. cmdb_ci_app_server, however it has setup substitued Choice labels and I want to return these instead. Is it possible to return the choice label value for this column by specifying in the request request?
The setup Choice value for sys_class_name of table cmdb_ci_app_server is Application Server, and is the value I want in the response.
Hopefully this is possible using the REST API.
Thanks,
Manjit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2019 02:20 AM
Hi,
Try with below then you will get the display value instead of actual table name,
Thanks & Regards,
Vasanth