- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2017 11:02 PM
Hello,
I am very new to ServiceNow and this community which I found it quite awesome but I haven't been able to find the exact article for my inquiry.
I have created an Item in the Service Portal that will replace a paper form that we currently have. REQUESTED FOR: variable is refered to sys_user table with the purpose of users(Managers) requesting this form on behalf an other user. So I would like the Line Manager Approval to be triggered from the user selection of this variable rather than from the user who is signed into their ServiceNow session
In the approval box I am able to select a 'Requested for' as indicated below in yellow. The problem is that that is NOT the name the variable I created in my item which is 'requestedfor'.
This below one is NOT the one I need because it gives me the Line Manager of the person who is logged in SN no from the variable 'requestedfor' from the item created in the Service Catalog.
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2017 03:47 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2017 11:42 PM
Hello Alejandro,
Go to the approval user activity on the workflow and click on the advanced checkbox with the script as
var answer = [];
answer.push(current.PASS THE EXACT NAME OF REQUESTED FOR VARIABLE NAME HERE.manager.sys_id);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2017 03:47 PM
Hello Alejandro,
Is the issue resolved now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2017 07:15 PM
It is thank you very much for your prompt response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2017 07:31 PM
You are very welcome Alejandro. Thanks for participating in the community!