Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

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

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?