- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 05:27 AM
Hello Everyone,
I want to populate a field name which is present on u_bsa table.
On u_bsa table i field named as Req for which was dot walk by sc_req_item table, i want to display that Req for field name for which i written a script like below
i am getting a display value as undefined
var ritm = new GlideRecord('u_bsa');
if(ritm.get(current.sysapproval)){
var req_for = ritm.u_requested_for.name; //Output i am getting is undefined
var ge = ritm.u_requested_item.number; // I am getting correct output here
gs.addInfoMessage(req_for);
gs.addInfoMessage(ge);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 06:10 AM
Try
var req_for = ritm.u_requested_item.u_requested_for.getDisplayValue()
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 05:35 AM
Hi Irfan,
Try getDisplayValue()
var req_for = ritm.u_requested_for.getDisplayValue();
Hope this might be helpful.
Please like or mark correct based on the impact of the response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 05:48 AM
I tried Suseela but it didnt populated

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 05:36 AM
What table is the BR running on? Can you include some screenshots of the BR so I have a better idea of what you are trying to accomplish and what you have done so far? Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2017 05:43 AM
Chuck,
I am writing script on Notification Scripting:
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
// Add your code here
var ritm = new GlideRecord('u_bsa');
if(ritm.get(current.sysapproval)){
var req_for = ritm.u_requested_for.name;
var ge = ritm.u_requested_item.number;
gs.addInfoMessage(req_for);
gs.addInfoMessage(ge);
template.print(""+ritm.u_requested_for.name);
//template.print(req_for);
}
})(current, template, email, email_action, event);