You need to sign in to do that
Don't have an account?
tulasiram ch
How to get List Of All Standard Objects...i used following code, code is working but debug not printing the object names...
public class standardObjectsNames{
public void standardObjectsNames(){
List<string> stdObjects = new List<string>();
for(Schema.SObjectType type:Schema.getGlobalDescribe().Values()){
string Objnames=string.valueOf(type);
if(!Objnames.contains('__c')){
stdObjects.add(Objnames);
}
}
System.debug('Sobjects in my org :' +stdObjects);
}
}
public void standardObjectsNames(){
List<string> stdObjects = new List<string>();
for(Schema.SObjectType type:Schema.getGlobalDescribe().Values()){
string Objnames=string.valueOf(type);
if(!Objnames.contains('__c')){
stdObjects.add(Objnames);
}
}
System.debug('Sobjects in my org :' +stdObjects);
}
}
Please use this Code, this will display all Standard Objects.
Thanks.
1) http://amitsalesforce.blogspot.com/2015/11/apex-describe-dynamic-retrieval-of.html
Please try below code and try to debug
IF you want to see on VF page try below code VF page
Let us know if this will help you
Try with following code,
Thanks,
Sukanya Banekar