ServiceNow Build up a JSON return object

 function getResult(){

var oResult = { "ProblemID": "", "PID": "" };

oResult.ProblemID = "a string"; oResult.PID = "b string";


return
oResult;

}


var res= getResult();

gs.print(res.ProblemID);


 






Comments

Popular posts from this blog

GlideRecord setValue

URL link in addInfoMessage