GlideQuery Display Value / Currency Flags

PHOTO EMBED

Thu Mar 18 2021 19:56:16 GMT+0000 (Coordinated Universal Time)

Saved by @dorian #servicenow

new GlideQuery('sys_user')
    .select('company$DISPLAY')
    .forEach(function (user) {
        gs.info(user.company$DISPLAY);
    });

// ACME North America
// ServiceNow
// ...
content_copyCOPY

Today there are four supported field flags: DISPLAY: Gets the display value of a field. Equivalent to calling getDisplayValue. CURENCY_CODE: Gets the currency code of a currency field (e.g. “USD”). Equivalent to calling getCurrencyCode. CURRENCY_DISPLAY: Gets the currency display value. Equivalent to calling getCurrencyDisplayValue. CURRENCY_STRING: Gets the currency string of a currency field (e.g. “JPY;123.45”). Equivalent to calling getCurrencyString.

https://developer.servicenow.com/blog.do?p=/post/glidequery-p5/