- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018 10:45 AM
On a Request form, the wrong information is in the Requested For. For Example, if I use the Hardware Request Form and select Requested for as User A, opened by is User B.
On the REQ it shows the Requested for as User B.. It should be User A.
On the RITM it shows the Requested for as User A.. that is correct.
Why is User B showing up as the Requested For, when on the Request form it was selected correct.
And how can I fix this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018 11:44 AM
Hi velvet,
Please try using this before BR on request table.
(function executeRule(current, previous /*null when async*/) {
var grRITM = new GlideRecord('sc_req_item');
grRITM.addQuery('request', current.sys_id);
grRITM.query();
while (grRITM.next()) {
if (!JSUtil.nil(grRITM.variables.requested_for)) {
current.requested_for = grRITM.variables.requested_for;
}
}
})(current, previous);
Thanks,
SD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018 01:02 PM