multi row variable set variables not populating in RITM description

sinu2
Tera Expert

MRVS variables are not populating in RITM description field

 

But normal variables are populating 

 

var wn = '';
var varown = new GlideRecord('sc_item_option_mtom');
varown.addQuery('request_item', current.sys_id.toString());
//varown.applyEncodedQuery('ORDERBYsc_item_option.order');
varown.orderBy("sc_item_option.item_option_new.order");
varown.addQuery('sc_item_option.value', '!=', ''); //filter out null values
varown.addQuery('sc_item_option.value', '!=', 'false'); //filter out false values
varown.query();
while (varown.next()) {
var question = GlideappQuestion.getQuestion(varown.sc_item_option.item_option_new);
question.setValue(varown.sc_item_option.value);
if (question.getLabel() != '' && question.getDisplayValue() != '') { //only return questions and answers that are not empty
//wn += '\n'  + question.getLabel() + ': ' + question.getDisplayValue();    //disabled this code. Dublin was having a problem; used the code below; the line break at end fixed the issue.
wn += question.getLabel() + ': ' + question.getDisplayValue() + '\r\n';
}
}
current.description = wn;
1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

MRVS variables and values are stored in the sc_multi_row_question_answer table with the parent_id field linking back to the RITM.