ServiceNow Service Catalog Variables or Record Producer Variables in Client Script Using Scratchpad see also: https://docs.servicenow.com/bundle/vancouver-application-development/page/script/server-scripting/concept/c_ScriptableServiceCatalogVariables.html display business rule var varsArr = []; var variables = current . variables . getElements (); for ( var i = 0 ; i < variables . length ; i ++) { var question = variables [ i ]. getQuestion (); varsArr . push ( question . getName () + ":" + question . getLabel () + ":" + question . getValue ()); } g_scratchpad .rp variables = varsArr . toString (); //for multi row var varsMR = current . variables . getElements ( true ); var varsMR_Arr = []; for ( var i = 0 ; i < varsMR . length ; i ++) { var now_V = varsMR [ i ]; if ( now_V . isMultiRow ()) { var rows = now_V . getRows ();
All things ServiceNow... take a look at my channel: https://www.youtube.com/@cloudminus89