How to convert query entity condition into to lower or to upper?

Hi Team,

I have to match the email address from entity with email address coming from data table. i can convert the data table value in to lower or upper format however not able to find a way to convert entity value in to lower or upper.

is there any way to convert entity value condition ?could any one please help ?

Email address exist in entity record " DEEPAK.CHAWLA@GMAIL.COM"
Email Address exist in data table “deepak.chawla@gmail.com

Thanks in Advance

Regards,
Deepak

Hi @deepakchawla

You can just add toupper or tolower

InputStr.ToUpper or InputStr.ToLower

Regards,
Gowtham K

@deepakchawla

I dont think you have that option now…you need to get the records and then filter…directly in filter ai dont think it would be possible to convert casing

Cheers

currentRow[“Primary RM …”].ToString().ToLower(); // Convert to lowercase
currentRow[“Primary RM …”].ToString().ToUpper(); // Convert to Uppercase

OR ignore case differences
loop the datatable
if (string.Equals(entity.EmailAddress, currentRow[“Primary RM …”].ToString(), StringComparison.OrdinalIgnoreCase))
{
// Emails match
}

i have to convert entity value in to lower or to upper