To contains two different Emails is it creates two different tables.

Afroze Shaik
Tera Contributor

Hi Team,

I have two different email accounts like 1st domain is abc@example.com its creates the incident record that fine   as well 2nd domain contains xyz@exmple.com its creates problem ticket. now i want to while sending email to contains abc@example.com and xyx@example.com mention it will create at a time two records posible ?   Recipients not taking the two emails at a time it will taking either one and create record.

 

Best Regards,

Afroze

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Afroze Shaik 

I think you are referring to inbound action and it is the expected behaviour of SN, it take only one email id and create record.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Mark Manders
Mega Patron

First: it sounds weird to have problems created from inbound emails.

Second: one email to create two tickets is also weird, process wise. 

 

ServiceNow will only receive 1 email, not two. If you have it setup that if it contains xyz or abc, it redirects to or is forwarded to ServiceNow, you can add logic that in this case an inbound action/inbound flow creates 2 tickets, if it is received like that (with both addresses), but then you also need to exclude it from the 'normal' flows/actions.

Still: it is weird to create 2 records from 1 email!

 

You can also use two inbound flows/actions for each recipient (assuming the emails are in the recipient on the email record). If it contains xyz, do this, if it contains abc, do this and if you don't have a 'stop' condition, it will check on other inbound logic if it matches as well. It will, however, only show 1 record on the email record. 

 

My advice: don't do it. Because it doesn't make sense from a process point of view (either two records or a problem through email). 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Ankur Bawiskar
Tera Patron
Tera Patron

@Afroze Shaik 

you can use inbound email action and check the recipients and accordingly create record into other table using script

Inbound action on incident and create record on problem via script

var recipient = email.to.toString();

// check the other email and create problem using GlideRecord

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Afroze Shaik 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader