- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2017 08:43 AM
Hello all,
I know we are able to check System Mailbox to see which emails have been sent, received, etc., but I want to see if there is a log that keeps track of resent emails.
We have a user who couldn't find an approval request email so I resent it through Emails -> System Logs -> Clicked Resend button, but not sure where I can check if the email was actually sent because the previous email is showing in the Email Log. (e.g. Original email was sent 8/28/17 and I resend the email on 9/14/17)
Any assistance this would be great!
Thanks,
Grace
**We are on Istanbul Patch 6
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2017 09:03 AM
That you can check in System Policy -> Event Log.
To find the exact log which is created from you, just add highleted code in "Reprocess Email" UI action something like below and take the sys_id and search it in event logs
var evt = new GlideRecord('sysevent');
evt.initialize();
evt.process_on = gs.nowDateTime();
evt.name = "email.read";
evt.parm1 = current.sys_id;
var evtId=evt.insert();
gs.addInfoMessage('event created to reprocess email "' + Packages.org.apache.commons.lang.StringEscapeUtils.escapeXml(current.subject) + '"'+"evtId: "+evtId);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2017 09:00 AM
Hi Grace,
One such way I guess would be to check & compare the created or updated date/time . Ideally, its same when mail is sent a delay in some seconds for time is expected to be a difference between created & updated but if different then I guess it would have been resent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2017 09:03 AM
That you can check in System Policy -> Event Log.
To find the exact log which is created from you, just add highleted code in "Reprocess Email" UI action something like below and take the sys_id and search it in event logs
var evt = new GlideRecord('sysevent');
evt.initialize();
evt.process_on = gs.nowDateTime();
evt.name = "email.read";
evt.parm1 = current.sys_id;
var evtId=evt.insert();
gs.addInfoMessage('event created to reprocess email "' + Packages.org.apache.commons.lang.StringEscapeUtils.escapeXml(current.subject) + '"'+"evtId: "+evtId);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 08:56 AM
Thank you Raju I was able to find the record!