Skip to main content
2 个回答
  1. 2019年3月5日 02:50
    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