case sensitivity in inbound action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 03:25 AM
Hi All,
I've discovered that our inbound email address is case sensitive otherwise SNow ignores it. We have a number of Business Units using SNow all with different inbound email addresses for their respective areas. This makes it impractical to cater for different variations of Upper/Lower case combinations.
Please suggest, if there is any keyword to be added in inbound action condition to ignore case sensitivity.
Here we had a inbound action condition as email.to.indexOf(Abc.Def@xyz.com)>-1.
For this we receive email from Abc.Def@xyz.com, While checking the recepient column of email logs if the recipient isn "Abc.Def@xyz.com"
the inbound action gets processed. And if the recipient column is filled with "abc.def@xyz.com".
Here the inbound actions gets failed, but the email is from the same recpient. So please suggest how to ignore case sensitivity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 03:27 AM
Hi Ramkumar,
You can create a variable with the email.to converted to lower case like:
var emails = email.to.toLowerCase();
Then you just write everything lower case in your indexOf statements.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 03:28 AM
Hi,
you can use toLowerCase();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 03:45 AM
Hi Rahul / David
Please confirm
If I use email.to.toLowerCase(); will this work for both the cases i.e whether the inbound action get processes if the recepient is abc.def@xyz.com and Abc.Def@xyz.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2018 03:56 AM
Hi Ramkumar,
email.to contains all the incoming email addresses, once you've converted it to lower case all the addresses contained within will be able to be matched on lower case:
var emails = email.to.toLowerCase();
if(emails.indexOf('abc.def@xyz.com') < -1){
//do stuff
}
all your indexOf statements will need to be lower case as all the incoming addresses will have been converted to lower case