Thanks for your reply Anilkumar, I have used below code it worked. Map<string,Schema.sObjectType> AllObjMap = new Map<string,Schema.sObjectType>(); AllObjMap = Schema.getGlobalDescribe(); for(string s : AllObjMap.keyset() ){ if(!s.contains('__')){ System.debug('------------>'+s); } }
Thanks for your reply Anilkumar, I have used below code it worked. Map<string,Schema.sObjectType> AllObjMap = new Map<string,Schema.sObjectType>(); AllObjMap = Schema.getGlobalDescribe(); for(string s : AllObjMap.keyset() ){ if(!s.contains('__')){ System.debug('------------>'+s); } }
I have used below code it worked.
Map<string,Schema.sObjectType> AllObjMap = new Map<string,Schema.sObjectType>();
AllObjMap = Schema.getGlobalDescribe();
for(string s : AllObjMap.keyset() ){
if(!s.contains('__')){
System.debug('------------>'+s);
}
}
All Answers
Please refer the following links for more information .
http://burnignorance.com/salesforce-tips/how-to-fetch-and-display-data-from-a-custom-object-on-visualforce-page-in-salesforce/
http://developer.force.com/cookbook/recipe/retrieve-a-list-of-objects-using-apex
I have used below code it worked.
Map<string,Schema.sObjectType> AllObjMap = new Map<string,Schema.sObjectType>();
AllObjMap = Schema.getGlobalDescribe();
for(string s : AllObjMap.keyset() ){
if(!s.contains('__')){
System.debug('------------>'+s);
}
}
Please check the code below ,
VisualForce page
Apex Controller for Visualforce page
Hope it helps.
Regards,
Roshni