Skip to main content

Posts

Showing posts from July, 2019

My first ServiceNow Workflow design as a SNOW developer

Using the script to access the service catalog variables from Workflow....

var gr = new GlideRecord('sn_sm_finance_request'); var num = current.sys_id; if (gr.get('sys_id',num)) {         var variables = gr.variables.getElements();     for (var i=0;i<variables.length;i++) {         var question = variables[i].getQuestion();         if(i==0 && question != ""){             var Opco = question.getValue();             var gr = new GlideRecord('core_company');             gr.get('sys_id',Opco);              var display = gr.getDisplayValue();             task.u_operating_company = display;         }         if(i==2 && question != ""){ ...