You need to sign in to do that
Don't have an account?
someone
SOSL search for phone number in e164 format
I have some contacts that have their phone numbers stored in e164 format (e.g. +18885551234). If I execute the below search with a phone param of 8885551234, the query returns nothing. Why is that?
String queryStr = 'FIND {*' + ph + '} IN Phone FIELDS RETURNING Contact(Phone, FirstName, LastName)';
And actually, come to think of it, this will only work if the all the numbers in SF are prepended with a +
DEBUG|Phone +18885551234