- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 02:19 AM
Hi guys,
In the Inbound email action in the When to Run conditions I have a few conditions so that the inbound rule will trigger only if the Recipients, To and Copied matches a pattern which is an email address.
So if the one sending the email is also putting that specific email address in To or CC we would like the inbound action to trigger.
The conditions work great but if that specific email address is followed by another email address then the conditions fail.
1. If I put the instance email in the To field and in the CC field that specific email then the inbound gets triggered
2. If I put the instance email in the To field and then I also put the specific email in the To field then the Inbound does not get triggered
Any idea why this is failing like this?
Also the name of that specific email address is something general so we must make sure that if the name appears in other email addresses as part of those email addresses names the inbound action doesn't get triggered. That is why I used the match pattern conditions because it seems to do the work.
So lets' say the specific email address I mention above is "bo@servicenow.com" and I would like to trigger the inbound action only if the "bo@servicenow.com" appears anywhere in TO or CC. If someone with "bogdan@servicenow.com" sends an email to the instance the inbound should not trigger. Looks like if you use the Match pattern in condition this will be accounted for but then i get the problem in the beginning of this post.
Any help will be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 02:30 AM
You could script this if you want. Set condition to the following
new yourScriptInclude().yourFunction(email.to)
In the script include you can then use email.to to look for if the desired email adress was in the to or cc field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 02:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 03:22 AM
problem with this is if you have an email being test@example.com and they put testtest@example.com in to/cc field, it'll trigger the inbound action and I assume you don't want that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2018 04:44 AM
Hi Vignesh,
I already tried adding the conditions like that but it was failing and instead of the specific record I wanted to be created an Incident record was created as that was the next inbound action in order.
Thanks anyway. I already posted the solution in this post
Regards,
Bogdan