Need help for CSV not getting attached to emails
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2024 12:04 AM
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, '', '');
itemRec.query();
if (itemRec.next()) { gs.eventQueue('mywizard', itemRec, '', '');
}
Email script- attached screenshot
Result - attached screenshot
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2024 10:27 PM
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