Send request approval to user input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2015 06:40 AM
Hello All,
We have a service catalog with an "onboard a new user" item. This item takes users to a form that they complete and one of the fields is a reference variable to the groups table where they pick the squad (group) of which the new user will be a member. The problem is that when this item is ordered there seems to be no way to have it trigger a request for approval to the manager of the group. The only way to capture the manager of the group is from the selection made by the user on the form. When we debug the variable seems to come up as undefined. In my reading I see there is some workflow for requests that I cannot seem to find and even if I did find it I understand it is global and any changes made would be much broader than what we need. I think approval rules are what I would need to use in this situation but I cannot seem to find a way to say in the approval rule only apply if SquadManager on the item is = Billy Bob and ALSO make Billy Bob the approver on the request.
Does anyone know how to trigger an approval to a specific user based on what is selected on the service catalog item?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2015 06:45 AM
Hi Joshua,
You can trigger the approval at the item level workflow. You have to select the advance checkbox on the approval user activity and then push the approvals from the script.
Basically you can fetch the input as current.variables.assignment_grp.sys_id; //Replace assignment_grp with the exact name you have created.
answer = [];
answer.push(current.variables.assignment_grp.sys_id);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2015 08:34 AM
Hi Pradeep,
This is what we are kind of trying to avoid I believe. Let me elaborate:
-HR goes in and selects "new user onboarding" and fills out a field with SquadName
-The intent is for the request to go to the manager of the Squad selected
-Once approved by the manager of the squad selected, 4 new item tasks are created each going to a different internal team to complete part of the onboarding. i.e. adding new user account, ordering new computer, giving access to certain things. These tasks do not need to be approved nor do we want to have each item have to be approved.
Is there a way to do this or do we have to have the request approval be automated and then have the items be the part that gets approved/rejected. I believe I know how we can achieve this on the requested item level but was rather trying to do so on the request itself. Thanks for the prompt reply Pradeep!
-JB