SOQL query not returning results when the filter on the name field has a binding value with the middle name specified
Last updated 2017-10-04 ·Reference W-2867707 ·Reported By 18 users
No Fix
Summary
SOQL query not returning results when the filter on the name field has a binding value with the middle name specified
Repro
1. Login to the Salesforce Org
2. Enable Middlename, Setup -> Customize -> User Interface -> check "Enable Middle Names for Person Names"
3. Create sample contact, Contact record with FirstName = 'William', MiddleName = 'H.', LastName = 'Miller'
4. Run SOQL query:
This query (correctly) produces one record:
select id,name from contact where name like 'william __ miller' order by name
But this query (incorrectly) produces zero records:
select id,name from contact where name = 'William H. Miller'
== results in no records
Workaround
Use a query like:
select id,name from contact where name like 'william __ miller' order by name
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.