Want to show RITM variable in the sysapproval_approver .

NeethuB
Tera Contributor

Want to show RITM variable in the sysapproval_approver.
For that i have created a feild called description (u_description).
I want to show data inside that feild.
eg:
Title:xyx
requestot:ghi 

22 REPLIES 22

i want to use BR not on Flow designer way

 

NeethuB
Tera Contributor

can we use  "sc_item_option_mtom"


instead of this lines:

 var variables = ritm.variables.getElements();
    for (var i = 0; i < variables.length; i++) {
        var question = variables[i].getQuestion();
        var label = question.getLabel();
        var value = question.getDisplayValue();
        if (label != '') {
            arr.push('  ' + label + " = " + value + "\n");
        }
    }
    current.u_description = 'Variable Summary\n' + arr.toString();

@NeethuB 

Script I shared should work fine

you didn't share what came in logs?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

How to see log?

 and ca we put the formatter in native view to esc portal?

 

@NeethuB 

Are you not aware on how to check system logs?

It's in left navigation, search here

AnkurBawiskar_0-1747658313686.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader