based on list collector variable value to send approval

NannuSubhani Sh
Tera Contributor

Hi Guys,

 

I have a variable(Approvers) with list collector type with user table when ever user select multiple users in Approvers variable we need to send approval for those users

 

NannuSubhaniSh_0-1680512382573.png

 we need to send approval for selected users kindly suggest any way to achieve this

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@NannuSubhani Sh 

you can use advanced script in User approval activity

something like this

answer = current.variables.approver.toString();

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

View solution in original post

4 REPLIES 4

Community Alums
Not applicable

Hello @NannuSubhani Sh ,

 

If you are using flow designer to trigger the approvals than use, Ask for approval action and add your variable in the approve or reject when field.

AnandMahajan_0-1680514376091.png

If this solves your query, mark this as correct and helpful.

 

Regards

Anand

I want to achieve this is in workflow using approval user activity.

Community Alums
Not applicable

Hi @NannuSubhani Sh ,

 

Use below activity with script,

AnandMahajan_0-1680515861244.png

 

 

Ankur Bawiskar
Tera Patron
Tera Patron

@NannuSubhani Sh 

you can use advanced script in User approval activity

something like this

answer = current.variables.approver.toString();

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