Skip to main content
2 answers
  1. Mar 5, 2019, 2:50 AM
    Hi Ankit,

    Here is the way to get the list of Sobjects

    list<schema.sObjectType> allObjects = Schema.getGlobalDescribe().Values();

    example -- try executing the below code in the developer console and look for debug.

    for(Schema.SObjectType objTyp : Schema.getGlobalDescribe().Values()){

        system.debug('****-->'+ objTyp.getDescribe().getLabel());

    }    

    Thanks,

    Govindaraj.S
0/9000