How to get choices labels for sys_class_name in REST request to a given table

Manjit2
Kilo Explorer

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

1 REPLY 1

Vasantharajan N
Giga Sage
Giga Sage

Hi,

Try with below then you will get the display value instead of actual table name,

https://{instance}.service-now.com/api/now/table/cmdb_ci_app_server?sysparm_limit=10&sysparm_display...


Thanks & Regards,
Vasanth