Need help for CSV not getting attached to emails

SoniaShridhar13
Giga Guru

Hi,

My CSV file is not getting attached to emails..

Scheduled Job-

var itemRec = new GlideRecord("sc_req_item");

itemRec.addQuery('sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()');
itemRec.query();
if (itemRec.next()) { gs.eventQueue('mywizard', itemRec, '', '');
}
 
Email script- attached screenshot
Result - attached screenshot
 
1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

Hello @SoniaShridhar13,

Please refer to the link below:
https://www.servicenow.com/community/itsm-forum/export-a-csv-file-as-an-attachment-in-email/m-p/5649...


If it is helpful, please mark it as helpful and accept the correct solution. In future, it might be helpful for someone to refer to this solution.

Thanks & Regards,

Abbas Shaik