function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Balaji B 10Balaji B 10 

how to search entire object with text or number? is it possible? Please give me best example with custom controller

ShivaKrishna(Freelancer)ShivaKrishna(Freelancer)
Hi Balaji,

you can search using SOQL and SOSL as well but SOSL is really meant for search in apex.

sample sosl:

FIND 'map*' IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead

let me know, if it helps you or need any help :)
shiva.sfdc.backup@gmail.com