Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var varLabel;
- var varValue;
- var arrUtil = new ArrayUtil();
- var set = new GlideappVariablePoolQuestionSet();
- set.setRequestID(current.getUniqueValue()); set.load();
- var vs = set.getFlatQuestions();
- for (var i=0; i < vs.size(); i++){
- varLabel = vs.get(i).getLabel(); //get label of variable
- varValue = vs.get(i).getDisplayValue(); //get display value of variable
- if(varValue != '' && varLabel != null){ //value is not empty or null
- answer +=(varLabel + " = " + varValue + "\n");
- }
- }
- current.u_summary = answer;
- current.update();
Advertisement
Add Comment
Please, Sign In to add comment