DisplayValue Parameter (Connect-ServiceNow Cmdlet)
Specifies whether the provider retrieves display values, actual system values, or both when querying data from ServiceNow.
Syntax
Connect-ServiceNow -DisplayValue string
Possible Values
TRUE, FALSE, ALLData Type
cstr
Default Value
"FALSE"
Remarks
Display values in ServiceNow only apply to reference fields. These fields store a system identifier such as a sys_id, but also expose a human-readable label, such as a user name or group name.
Set this property to control how the 本製品 retrieves values for fields that support display values.
The following options are supported:
- TRUE: Returns the display value for each reference field. Due to API limitations, all fields are returned as strings.
- FALSE: Returns only the underlying system values from ServiceNow.
- ALL: Returns both the system value and a separate display-value column for each reference field. The naming pattern of the display-value columns is controlled by the DisplayValueColumnName property.
This property is useful when you need to retrieve readable labels instead of system identifiers, or when exporting data for reporting or UI display.