Filter Catches some, but not all matches

You don’t need relatively expensive Regex replacement/matching — your problem was extra spaces after the email. Using Trim() removes these. This works:

[Lead Assignment].Filter(Email.Trim()=thisRow.Email.Trim()).First()

Oh, and don’t forget to .First() your filter result, otherwise you’ll get a list-of-one instead of just one item, which will result in issues down the road. That’s another mistake everyone makes. See here:

3 Likes