trigger approvals through MRVS

Anubhav Srivas1
Tera Expert

Hi,

i'm using a MRVS and a variable in that needs to be used for approval (single line text), i'm doing this through a workflow.

 

the below script is being used: but the approvals are not triggering. when i checked through run script it is giving the exact value. Please help

var rows_len = current.variables.application_details.getRowCount();  
for(var i=0;i<rows_len;i++){
var row = current.variables.application_details.getRow(i);
answer.push(String(row.tech_domain_owner));

}
4 REPLIES 4

Community Alums
Not applicable

var rows_len = current.variables.application_details.getRowCount();

var approvalValue = '';

// Initialize the variable

for (var i = 0; i < rows_len; i++)

{

var row = current.variables.application_details.getRow(i);

approvalValue = String(row.tech_domain_owner); /

//Set the variable break;

//Assuming you only need one value from the MRVS

}

// Set the workflow variable

workflow.scratchpad.approval_value = approvalValue;

 

Hi,

it doesn't work and skips the approval

Community Alums
Not applicable

Did you get value in approvalValue ?

If yet then what type of value you are getting?

no values have been seen, it just skipped the approval workflow