Incident creation of p2 and p3 inc when abc@gmail.com team send mail to servicenow mail box

dipa11
Tera Contributor

Hi guys ,I  need to create incident if abc@gmail.com sends alert/warning email to service's mailbox it should create pp fro inc r alert and p3 for warning ,I created inbound actions for this but when I am testing by from field it is creating inc but when I put condition recipient contains abc@gmail.com and sending mail to dev instance for testing it is not creating can you please guide following script I used for inc creation 

 

 

 

if (email.subject.toLowerCase().includes('alert')) {

 

current.impact = '2';

 

current.urgency = '2';

}

else if (email.subject.toLowerCase().includes('warning')) {

current.urgency = '3';

current.impact = '3';

 

}

 

I

 

 

 

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @dipa11 

 

Hi @dipa11 

 

The reason in PDI, emails are restricted, which means till the London release SN provides email servers but after that, due to some security issue this has been stopped. So now neither inbound nor outbound email work in PDI. But there is a solution as well, you can configure the Gmail server in PDI to make it work, but by doing this, you are bringing all your emails in PDI.

 

https://www.servicenow.com/community/developer-forum/solution-how-to-configure-email-account-in-serv...

 

 

*************************************************************************************************************
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]

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

Hi @Dr Atul G- LNG 

 

I am not working in pdi actually it's my task in company actually abc@gmail.com this I given as example assume it's client mail id and I am testing functionality by sending mail from my outlook mail id to servicenow dev instance ,inc not creating when I tested by using condition receipient contains abc@gmail.com.  ,sending mail to client-servicenow.com 

Hi @dipa11 

 

Is email properties enable in the instance? Check is that email is going in email logs?

*************************************************************************************************************
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]

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