- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 10:18 AM
I am trying to figure out how to take a variable on my Portal and map it to a field in a Request.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 10:44 AM
Add this to your workflow run script of Requested Item and it should work
var request = new GlideRecord('sc_request');
if (request.get(current.request)) {
request.requested_for = current.variables.u_requested_for;
request.short_description = current.variables.<your_variable_name>;
request.update();
}
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 03:19 PM
Can you post the script you used?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2018 09:03 AM
var request = new GlideRecord('sc_request');
if (request.get(current.request)) {
request.requested_for = current.variables.u_requested_for;
request.short_description = current.variables.u_access_list;
request.update();
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2018 11:09 AM
Ok . Cool. Confirm this workflow is running on Requested Item.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2018 12:00 PM
As it turns out the issue is that it is putting to person who created the request in as Requested For and there is a separate field that holds that information. They could be the same person but a manager could put in a request for someone else and it is that persons name that I want to show in Requested For. Sorry - my previous explanation was not clear.