trigger approvals based on variable

Anubhav Srivas1
Tera Expert

Hi,

i'm using a MRVS and a variable in that needs to be used for approval, 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));

}


5 REPLIES 5

Hi @Anubhav Srivas1,

 

Make sure that Tech domain owner [tech_domain_owner] is a reference variable with referenced table User [sys_user].

 

Thanks,
Sagar Pagar

The world works with ServiceNow