Mail script not working while trying to fetch GlideRecord from a non-task table using documet_id of approval record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 05:42 AM
var gr = new GlideRecord('u_capex_requests');
gr.get('sys_id', current.document_id);
template.print(gr.u_requestor_name);
tried this in mail script to get requestor name in email body, but it is not happening. Please suggest some alternatives to get requestor name in email body.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 06:28 AM
I just noticed you have gr.Query()... it should be lower case. Have you tried with gr.query()?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 07:30 AM
yes.. i did gr.query only. Is there any other way to check why glide script is not working in email script ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 07:36 AM
Any signs of trouble in the system logs or email logs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2017 02:22 AM
no trouble in email logs or system logs . Is there any other way to check why glide script is not working in email script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2017 12:24 AM
Found out that Glide query on the non task table is not working only in the email script. In background script or in UI macros it is working allright. The version is as per system diagonastics shows the following:
glide-helsinki-03-16-2016__patch11b-06-28-2017_07-06-2017_1657.zip .
Does anybody know about any known error or something ?