WebJun 21, 2024 · What is the use of getReference () ? getReference () gets the record used in another reference field. For example you have the requested_for (reference to the sys_user table) and with getReference, you will retrieve the User record and save this as a gliderecord into a variable. WebMay 20, 2024 · The ‘getRefRecord’ method can be used as a shortcut to query a record populated in a reference field on a record. varcaller =current.caller_id.getRefRecord();//Returns the GlideRecord for the value populated in the 'caller_id' field caller.email='[email protected]'; caller.update(); ‘OR’ Query
What to chose between g_scratchpad, getReference and …
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 … WebExample g_form.addDecoration('caller_id', 'icon-star', 'preferred member'); GlideForm.addDecoration(String fieldName, String icon, String title, String color) Adds an … cyberview reflecta
GlideElement - Scoped - getReferenceTable ServiceNow …
WebThe getValuemethod gets the value of a field on the form (not the value in the database). The example script gets the value of the Short descriptionfield from the form and displays the Short descriptionfield value in an alert. alert(g_form.getValue('short_description')); WebJun 24, 2024 · Below is the example: Update data of a reference field table without GlideRecord. var caller = current.caller_id.getRefRecord(); caller.email = ‘[email … Web‣ Get Reference for a Field g_form. getReference (, callbackFunction ); ‣ Flash a Field g_form. flash (., color, count); Example: g_form. flash (incident.number, #FFFFFF, 1); ‣ Get Integer Value of Field g_form. getIntValue (); ‣ Get Decimal Value of Field g_form. getDecimalValue (); cyberview pf3600u scanner