- 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:33 AM
Also - my field is named u_requested_for

- 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 12:34 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2018 01:23 PM
Add Run Script after Begin
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 01:27 PM
That is where I had it to start - same results