Can we send approval to user' manager using the Approval - Groups block in workflow

Sai Sonali
Tera Contributor

Currently we are sending approvals to multiple groups using Approval - Group block in workflow. But needed to add one of condition in the customized script in approval block that if requestor == approver person then the approval should go to his/her supervisor.  

Typically we pass the approver group sys_ids into the answer = [] variable to send approval to respective approver group member. So can we pass the user's manager sys_id as well into this variable of Approval - Group block to send approval.

1 REPLY 1

ShubhamGarg
Kilo Sage

Hello @Sai Sonali ,

 

Yes, you can pass the required manager ID if it satisfies above condition.

However, it would be better if you do not hard code the sys_id in the workflow activity, Use Dot Walking  (requested_for.manager) as requested for and manager value can be dynamic.

 

Kindly mark this as Accepted Solution/Helpful if above info. helps in any way and help in closing this thread.

 

Regards,

Shubham