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
Challa KoteswaraRaoChalla KoteswaraRao 

how to fetch different objects into picklist on vf page.i can select any object that objects records can be displayed at pageblock table.

Hi Frndzz,

Please help me for the following scenario
Best Answer chosen by Challa KoteswaraRao
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi CHALLA,

For The Above requirement, you should need to use "Schema Class" Check the below document which salesforce has provided in apex developer guide.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_schema.htm

Please check the below code we should use predefined methods which are provided in schema class and also check the code to retrieve object through SOQL Queries.

Please refer the below link for reference. I hope it will be helpful.

Please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar
 

All Answers

Rahul KumarRahul Kumar (Salesforce Developers) 
Hi CHALLA,

For The Above requirement, you should need to use "Schema Class" Check the below document which salesforce has provided in apex developer guide.

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_schema.htm

Please check the below code we should use predefined methods which are provided in schema class and also check the code to retrieve object through SOQL Queries.

Please refer the below link for reference. I hope it will be helpful.

Please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar
 
This was selected as the best answer
Challa KoteswaraRaoChalla KoteswaraRao
Thank you so much Rahul Kumar