A wildcard is a keyboard character such as an asterisk (*) or a question mark (?) that is used to represent one or more characters when you are searching for records.

SOSL supports two wildcards:

List<List<sObject>> results = [FIND ‘Univ*’….];

List<List<sObject>> results = [FIND ’Jo?n’….];

List<List<sObject>> results = [FIND ‘Univ*’ IN NAME FIELDS …..];

Our Recent Blog

Share This Post