- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2015 12:59 PM
I am currently working on a workflow and messing around with some approvals. In my form, I have the user fill out a "who is your manager?" field from a reference. I want to, then, have the approval task pull from the field they filled out in the form and email that specific manager for approval. Thoughts/ideas?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2015 07:26 AM
Hi Alex,
In the approval activity, check the advanced checkbox and put the following in the script field. You're pushing two user ids to an array for the approval activity to use.
answer = [];
answer.push(current.variables.manager.sys_id);
answer.push(current.variables.div_dir.sys_id);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2015 01:19 PM
Hi Alex,
You can do this from the approval script in the approval activity. Something like:
answer.push(current.variables.variablename);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2015 06:56 AM
My scripting is not so great. I might need you to hold my hand through this one a little more. That script totally makes sense in theory but I can't get it to work no matter what variation I use.
So I am going to break it down with some visuals...
I am trying to get the user to input a manager and director so that the two people they input will need to go in an approve their order for equipment. So, I am thinking that the variables I use will be "manager" and "div_dir".
and to cover my bases I pulled the sys_id for the manager...
so variables have been established and noted for workflow use...
I have my workflow ready to go and just need to fine tune the "approval user".
What, exactly, would I put as my script in there for this to work (including all the grammatical punctuation and whatnot).
I would appreciate any and all help!!!!! Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2015 07:26 AM
Hi Alex,
In the approval activity, check the advanced checkbox and put the following in the script field. You're pushing two user ids to an array for the approval activity to use.
answer = [];
answer.push(current.variables.manager.sys_id);
answer.push(current.variables.div_dir.sys_id);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2015 11:01 AM
You are awesome! Worked splendidly! Thanks