case sensitivity in inbound action.

Ramkumar Thanga
Mega Sage

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.

7 REPLIES 7

Dubz
Mega Sage

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.


rahulpandey
Kilo Sage

Hi,


you can use toLowerCase();


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


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