Inbound Email Action Failed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 08:00 AM
Hi Team,
I have created an inbound email action on the Incident table and I got the below message in the "Email Log Entry" after it is proceed and no incident is created.
"Skipping script 'INBOUND ACTION NAME ', condition 'email.origemail.toLowerCase() =='fromemail@gmail.com'' failed"
Please see the below details of the inbound action and please help me if i did any mistake
Details:
Target Table: Incident
Action Type: Record Action
Stop Processing: True
Subject: subject contains "Amazon App"
Condition: email.origemail.toLowerCase() =='fromemail@gmail.com'
Script:
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2023 07:33 PM
Hello @Shaikh2123,
Please refer to the link below:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0538137
Mark my correct and helpful, if it is helpful and please hit the thumbs-up button to mark it as the correct solution.
Thanks & Regards,
Abbas Shaik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 08:16 AM - edited 12-17-2023 08:17 AM
Hi @Shaikh2123
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0832542
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0538137
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 09:38 AM
Try below code
// Inbound Email Action Script
// Check if the email sender matches the specified condition
if (current.origemail && current.origemail.toLowerCase() === 'fromemail@gmail.com') {
// Your existing logic to create an incident or other actions
// ...
// Ensure you include the necessary actions to create an incident
} else {
// Log that the condition is not met
gs.log("Inbound Email Action: Condition not met for sender " + current.origemail);
}
Please mark my answer as helpful and the solutionaccepted if it serves the purpose.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2023 10:17 AM
@Shaikh2123 try removing the condition and check if the Inbound works. If it does, you can check if the condition mentioned in the condition field matches with correct email or not.