WebJul 2, 2024 · 1. Those aren't random numbers. The number field returns the CHGxxxxxx number and the other long strings are sys_id values that reference users. You need to call getDisplayValue to get a meaningful value: glidefunction:concat (number,',',requested_by.getDisplayValue (),',',assigned_to.getDisplayValue ()) Share. … WebServiceNow provides JavaScript APIs for use within scripts running on the ServiceNow platform to deliver common functionality. This reference lists available classes and methods along with parameters, descriptions, and examples to make extending the ServiceNow platform easier. Please note: The APIs below are intended for scoped applications and …
Populating a currency field (through scripting) with a ... - ServiceNow
WebAug 4, 2016 · I was working with a client recently and had the need to get the Display Value of a Reference field that was on the form. I didn’t want to have to make an AJAX call just to pull this value (o… WebThis document describes how you can initialise a GlideDateTime variable with a pre-defined value. guilford building supply
Difference between getValue() and getDisplayValue() on google a…
WebIn the. case of the g_form. getValue () method however, you must pay attention to data type or your script. may have unexpected results. The g_form. getVaIue () method always returns a string despite the data type of the field. If returning. a number is important, use the or g_form. getDecimalValue () methods instead. http://sncommander.com/how-to-get-the-displayvalue-of-a-reference-on-the-client-side-in-servicenow/ WebJun 4, 2024 · Judging by the table name that looks like a data lookup table. Is there any reason why you are not trying to implement this requirement using the Data Lookup Definitions rather than Assignment Rules?. If you are insistent on taking this route, then the last line should read bourse fayat