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
onlinenandaonlinenanda 

How to get same dropdown list in my custom page as workflow Rule select Object dropdown list

I need to get list of object types for worflow rule on my custom page , any body know the query to pull those list.
Best Answer chosen by Admin (Salesforce Developers) 
Scott.MScott.M

I think what you might be looking for is the following:

 

 

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

 

That should give you a list of all sObjects standard and custom

 

 

 

All Answers

Scott.MScott.M

I think what you might be looking for is the following:

 

 

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

 

That should give you a list of all sObjects standard and custom

 

 

 

This was selected as the best answer
onlinenandaonlinenanda
That is bringing complete schema object list. But if you see the actual default dropdown it is trimed one.