• raju petluri
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I'm trying to write a program to pull in all the objects our admins regularly modify. These don't include system objects such as Approvals and Opportunitycontactrole. The list I'm wanting to pull is the one you find by going to Setup->Create->Objects. 

User-added image

I have this code. The problem with this code takes too long to iterate. I keep getting a CPU timeout error in the Dev console. I noticed it is pulling things like Approvals. I'm only interested in the custom object screen plus standard objects like Accounts, Contacts, Opportunities, and so on. Not the System Standard objects.
for(Schema.SObjectType objTyp : Schema.getGlobalDescribe().Values()){
    system.debug('****-->'+ objTyp.getDescribe().getLabel());
}
Anyone know how to pull that without generating a manual custom setting list?