Skip to main content
2 of 2
edited title
Adrian Larson
  • 151.3k
  • 38
  • 247
  • 431

Apex: Retrieve the URL of a custom object setup detail

I'm trying to get a list of all objects and the URLs that lead to their page in the Setup:

enter image description here

From the docs I'd expect the below to work but it returns:

"Expression of type Schema.DescribeSObjectResult has no member named urlDetail"

List < Schema.sObjectType > objectSchema = Schema.getGlobalDescribe().Values();

for (Schema.sObjectType obj: objectSchema) {
DescribeSObjectResult describe = obj.getDescribe();
    
System.debug(describe.urlDetail);
    
}