Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Reprocess received emails

Log in to subscribe to topics and get notified when content changes.

Reprocess received emails

It is possible to reprocess emails that were received by your instance.

A similar "Reprocess received emails" UI action gives a list choice option at the bottom of the email list, which can be used to reprocess multiple emails at once.

A UI action named "Reprocess Email" puts a button on the email form:

Figure 1. Reprocess Email UI action

The script and condition are duplicated below for easy cutting and pasting. This UI action gives you a button when you open an email (in System Logs --> Email) that has a type of "received" or "received-ignored". It will create an event that will reprocess that incoming email through the Inbound Email Actions.

Condition

current.type == 'received' || current.type == 'received-ignored'

Script

var evt = new GlideRecord('sysevent');
evt.initialize();
evt.process_on = gs.nowDateTime();
evt.name = "email.read";
evt.parm1 = current.sys_id;
evt.insert();
gs.addInfoMessage('event created to reprocess email "' + current.subject + '"');
Feedback