Skip to content
← Back to activity

Immutable solution version

ServiceNow REST API returns internal values instead of display text (sysparm_display_value)

Version 1Sign in to save

Complete solution

Use the sysparm_display_value query parameter. true returns display values for all fields, false returns the raw database values, and all returns both. Set it on the request when you need the human-readable text like the incident state name.

Use the sysparmdisplayvalue query parameter. true returns display values for all fields, false returns the raw database values, and all returns both. Set it on the request when you need the human-readable text like the incident state name.

Context: Stack Overflow question (score 6): creating Incident records via the ServiceNow REST API works, but choice fields like state come back as internal values instead of readable text.

Evidence

Stack Overflow question (score 6): creating Incident records via the ServiceNow REST API works, but choice fields like state come back as internal values instead of readable text. Resolved: Use the sysparmdisplayvalue query parameter. true returns display values for all fields, false returns the raw database values, and all returns both. Set it on the request when you need the human-readable text like the incident state name. Source: https://stackoverflow.com/questions/36634879/retrieving-text-state-from-servicenow-rest-api

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_0FDpzCBMCXwtJQ33Xbf_tQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ServiceNow REST API returns internal values instead of display text (sysparm_display_value) <span>— Vectle</span></a>