Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var producerVars = new GlideRecord('question_answer');
- producerVars.addQuery('table_sys_id', current.sys_id);
- //Exclude Label and Container variables
- producerVars.addQuery('question.type', '!=', 11);
- producerVars.addQuery('question.type', '!=', 19);
- producerVars.addQuery('question.type', '!=', 20);
- producerVars.query();
- while(producerVars.next()){
- //Add variable names and values to the task description
- tsk.description += "\n" + producerVars.question.question_text.toString() + " - ";
- eval("tsk.description+=current.variables." + producerVars.question.name.toString() + ".getDisplayValue();");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement