I want to access the metadata of a custom object and display the name of the custom object. This has been changed from the original and I want my page to always display the name without having to change any code or markup.

A label can be accessed as {!$Label.MyLabel}.

Is there something akin to {!$MyCustomObject.Label}?

Any ideas?

有帮助吗?

解决方案

Yes you can do this via the Global Variable $ObjectType i.e.

{!$ObjectType.CustomObjectName__c.Label}

also for these types of questions try the salesforce Beta, salesforce.stackexchange.com

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top