Workflow-Setting approval user as the manager of the requester

gnunez
Kilo Guru

Hi all,

I am working on a workflow and need to add a script so one of the "Approval-User" is assigned to the manager of the requester. On one of my catalog tasks, I already have it set so some tasks are assigned to the requester so I'm hoping I can do the same for the manager.

An idea would be putting the requester and manager in one group and finding a way to assign to that group?

Any help is appreciated!

-Grace

3 REPLIES 3

Joe McCarty1
ServiceNow Employee
ServiceNow Employee

Shouldn't need to script it, but you should be able to dot-walk through the current.request.requested_for.manager field in the user approval workflow activity:



Screen Shot 2017-02-22 at 5.33.57 PM.png


I'm not sure if I'm doing it properly because it skipped the approval and just showed as "Approved".


find_real_file.png


Joe McCarty1
ServiceNow Employee
ServiceNow Employee

Likely the requested_for user has no manager set.   Are you using a variable to capture the requestor or are you using the OOB requested for capability?