Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Send approval to catalog variables through approval user activity in workflow

Brahmi Pandla
Tera Guru

Hi

I have requirement to send approval catalog variables

 

i have two variables

business owner and technical owner

 

i want send the approval to business owner and technical owner 

how i write the script in workflow

 first i try send the approval with below script but it won't work

 

Please any one help on this

answer = [];
var apr;
apr = current.business_owner;
//apr = current.tech_owner;
answer.push(apr);
 

 

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

If these are reference variables, you can use something like this:

answer = [];
answer.push(current.variables.business_owner.toString());
answer.push(current.variables.tech_owner.toString());

View solution in original post

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

If these are reference variables, you can use something like this:

answer = [];
answer.push(current.variables.business_owner.toString());
answer.push(current.variables.tech_owner.toString());

Hi @Brad Bowman  

 

Thank you so much your reply

 

Thanks

Brahmam.