How can we check if an approval request email has been resent?

gnunez
Kilo Guru

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

1 ACCEPTED SOLUTION

Raju Koyagura
Tera Guru

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);



find_real_file.png


View solution in original post

7 REPLIES 7

Dave Smith1
ServiceNow Employee
ServiceNow Employee

Doesn't a resend add another "sent" entry to the logs?


I checked and it doesn't. I did see that "Headers" box is updated with the new email date and time.


Nitesh Asthana1
Kilo Guru

Hi Grace/Dave,



So I checked in my instance and checked 'Resend' UI action as well.


'Resend' button is only going to change below fields of the email record.So that means, it is not going to create a separate record.



current.mailbox = "outbox";


current.type = "send-ready";



So you can check the Updated field, which will show timestamp when you resent it.



Hope this helps.


Do not feel shy to mark correct or helpful answer if it helps or is correct.



Best Regards,


Nitesh Asthana


Thanks Nitesh, I see that the updated field does have the correct information.