- 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 10:20 AM
What kind of catalog is it? You mayn't be able to map it to request, but you can map it to field in requested item in its workflow
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 10:24 AM
It is in the service catalog. I have a User variable that I was to map to the Requested For field for the request that is generated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 10:26 AM
If you have a variable requested_for, it should automatically map to Request's requested for
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 10:30 AM
But the variable has to be named requested_for? Also - what if I want data from the form to go into Short Description?