The CreatorCon Call for Content is officially open! Get started here.

Workflow Approval Step based on what user was selected as the approver in the request

Joshua Comeau
Kilo Sage

 would like to create an approval step so that when the user selects a manager (approval) from the drop down that in the workflow it grabs that user and creates an approval user request for said user?

 

They pick who the approver is which equates to the picture above it. requesting access for auto populates the manager approval and the manager approval userid is what I want to make an approver request in the work flow but not sure how

 

which core activity to use and what would be the script for this?

JoshuaComeau_0-1674653983008.png

 

 

 

JoshuaComeau_1-1674653983052.png

 

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

Hi Joshua,

It sounds like all you need to do is in the Approval - User activity, leave the Users field blank, or you can populate it using the convention ${variable_name}.  If you leave it blank, then the Additional approvers script would look like this:

answer.push(current.variables.variable_name);

In either case variable_name is the name of your Manager approval variable.

 

View solution in original post

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

Hi Joshua,

It sounds like all you need to do is in the Approval - User activity, leave the Users field blank, or you can populate it using the convention ${variable_name}.  If you leave it blank, then the Additional approvers script would look like this:

answer.push(current.variables.variable_name);

In either case variable_name is the name of your Manager approval variable.