How to mark a received email as "received-ignored" using Inbound Email Action

JC S_
Mega Guru

We created a custom Inbound Email Action that determines if an email sent directly to our instance email is from set of users allowed to create an incident directly via email. Users not part of this will not receive anything as such we need to mark the email received as "received-ignored" type. How can we implement this, currently I tried using current.type = "received-ignored"; current.update(); but it inserts a new record on email logs instead of updating the received email.

We also need to write a message on the email log so that when you view the email log, there is note on what the inbound action did.

3 REPLIES 3

Michael Fry1
Kilo Patron

The inbound action needs to be skipped and the email should be marked as ignored. Check out the script example here How to mark a received email as "received-ignored" using Inbound Email Action   named Prevent Ticket Creation Based on Phrase.


Hi Michael,


The link in your post points this post.



Perhaps you meant to post this link?


Prevent Ticket Creation Based on Phrase - ServiceNow Wiki



If the reply was informational, please like, mark as helpful or mark as correct!


Dooh! Thanks for backing me!