Deny inbound action ticket creation from multiple email address

Kaustubh k
Tera Contributor

Hi All, 

 

We have a list of 700 email address shared and we need to block them to trigger inbound and create ticket is ServiceNow, please help how we can achieve this as on condition level is we update recipients its 700 plus mail id we need to restrict.

 

Any feedback on the same is highly appreciable.

 

Thanks

Karan

1 ACCEPTED SOLUTION

Prince Arora
Tera Sage
Tera Sage

@Kaustubh k 

 

You can store the data as below array in your inbound action 

 

var blockEmails = ["abc","pqr","mno"];
if(blockEmails.indexOf(email.from) != -1){
 return;
}

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

View solution in original post

3 REPLIES 3

dhanu3
Kilo Sage

@Kaustubh k You can use Email Address Filters to restrict email addresses.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0869547 

@Kaustubh k Did you get the solution? Please update with correct response to close this thread.

Prince Arora
Tera Sage
Tera Sage

@Kaustubh k 

 

You can store the data as below array in your inbound action 

 

var blockEmails = ["abc","pqr","mno"];
if(blockEmails.indexOf(email.from) != -1){
 return;
}

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.