2

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?

4

1 回答 1

1

是的,您可以通过全局变量 $ObjectType 执行此操作,即

{!$ObjectType.CustomObjectName__c.Label}

对于这些类型的问题,请尝试 salesforce Beta,salesforce.stackexchange.com

于 2013-10-17T12:37:57.640 回答