Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var producerVars = new GlideRecord('question_answer');
  2. producerVars.addQuery('table_sys_id', current.sys_id);
  3. //Exclude Label and Container variables
  4.  producerVars.addQuery('question.type', '!=', 11);
  5.  producerVars.addQuery('question.type', '!=', 19);
  6.  producerVars.addQuery('question.type', '!=', 20);
  7.  producerVars.query();
  8.  while(producerVars.next()){
  9.  //Add variable names and values to the task description
  10.  tsk.description += "\n" + producerVars.question.question_text.toString() + " - ";
  11.  eval("tsk.description+=current.variables." + producerVars.question.name.toString() + ".getDisplayValue();");
  12.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement