I've searched high and low, and I can't seem to figure out the Apex syntax I need to use to access the Related List Label for a Lookup relationship.
It shows up in the objectTranslation XML as relationshipLabel
, but that text doesn't appear anywhere in the Apex documentation.
I had hoped that the following syntax would work:
Schema.SObjectType.Custom_Object__c.Fields.Custom_Field__c.relationshipLabel
But no luck:
Expression of type Schema.DescribeFieldResult has no member named relationshiplabel
Is that label accessible from Apex? I worry that it isn't, because I couldn't find it when browsing salesforce.schema in the Force.com IDE.
Update:
Someone has created an Idea to expose relationshipLabel in the WSDL, and I would expect it to extend to Apex as well.