Inbound email action shouldn't create the record when the email is created by System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi Team,
I have created an Inbound email action that when ever Recipients is abc@xyz.com(group DL) then Hr Case will get created , this part is working fine.
Now I need to restrict the email creation when the system send's and email to that same DL saying that Case Got assigned to this Group(same dl) and any other similar emails to this it should only create the case when email is guest or any user part of Servicenow but not for the emails which i mentioned above.
Also Please guide me on Testing this particular part as I'm not aware on how to test this functionality.
Thanks,
Raja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
You need to adjust your logic so that emails from those system senders are ignored either via email filters or script logic in the inbound action that checks the sender and then aborts the action (current.setAbortAction(true) when the sender is a system address)........because oob inbound actions will process any incoming email that meets their conditions...... for testing you send sample emails with the same header/sender values to your instance and check the sys_email and email logs to confirm whether they are ignored or processed .......email filters can block them before the action runs and script logic inside the inbound action can stop create/update execution......
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Technical Consultant - Rising Star/Class of Legends 2025