Is there there an easy way which i can produce a Salesforce report which returns the following headers ;

Singular Label Plural Label Object Name API Name Custom

Desired outcome would be ;

Singular Label : AML Process Plural Label : AML Processes Object Name : AML_Process API Name : AML_Process__c Custom : Yes

I have found the following article (see below) which is what i am after, however i am struggling to add in the other fields which i require http://developer.force.com/cookbook/recipe/retrieve-a-list-of-objects-using-apex

looking forward to your help Regards

1 Answer 1


Modify this code to meet your needs. I have just printed it in double log.

You should be able to generate VF report with this.

List<Schema.SObjectType> gd = Schema.getGlobalDescribe().Values();     

for(Schema.SObjectType f : gd)
   //options.add(new SelectOption(f.getDescribe().getLabel(),f.getDescribe().getLabel()));
    System.debug('Singular Label ' + f.getDescribe().getLabel()); 
    System.debug('Plural Label ' + f.getDescribe().getLabelPlural()); 
    System.debug('Object Name ' + f.getDescribe().getName().replace('__c','')); 
    System.debug('API Name ' + f.getDescribe().getName()); 
    String s = '';
    If( f.getDescribe().getName().indexOf('__c') > 0) 
        s = 'Yes'; 
        s = 'No';
    System.debug('Custom ' + s) ; 
    //System.debug('Custom ' + f.getDescribe()); 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .