Skip to main content
edited title
Source Link
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"

"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);
    
}

Apex: Retrieve the URL of a custom object

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);
    
}

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);
    
}
Source Link

Apex: Retrieve the URL of a custom object

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);
    
}