Hi,
I've designed a workflow that will have 2-step approvals depending on a form variable. If the checkbox in the form is checked, it's a 2 step approval, else if the checkbox is not selected it will be a single step approval.
The first approver is set to be Dynamic - Group, and any member from the group can approve it.
The second approver should be the first approver's manager.
My doubt is how do I retrieve the first approver's id as a variable and fetch the manager's id to set him as the second approver?
Thanks in advance.
Try the following (screenshot below)
After the approval node, create a SQL select node and create a transition.
In the SQL select node, right click and you will see a menu
Choose Previous Node Completed By -> Id - the variable should be: ${Previous_Node_completedBy_meu_userId}
Or directly choose Previous Node Completed By -> Supervisor - the variable will be: ${Previous_Node_completedBy_meu_supervisorFullName}