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
vasu takasivasu takasi 

How search all objects using search button

hi

 

I have to search all objects in vf page using search button.

But i have no idea on retrieving object names using sosl .

please help me.

kiranmutturukiranmutturu

r u  need all objects names in the instance or any filed value in all the objects in the instance?..

vasu takasivasu takasi

i need object names that are matched to a text

kiranmutturukiranmutturu

this will give you a map  of standard and custom objects in the instance... 

 

Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe();  

 

after you hit the search key word then find the respective object from the map using the entered key value..