Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to i count objects available in salesforce organization

map<String, Schema.SObjectType> GlobalMap = Schema.getGlobalDescribe(); 
for (Schema.SObjectType Obj : GlobalMap.values()) {
    Schema.DescribeSObjectResult ObjDesc = Obj.getDescribe();
    system.debug('Object Name: ' + ObjDesc.getName());
}
System.debug(GlobalMap.size() );
Source by salesforce.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #count #objects #salesforce #organization
ADD COMMENT
Topic
Name
6+3 =