[SalesForce] Access custom metadata through global variables

It's common to get at metadata around a custom object using the common $ObjectType global variable.

{!$ObjectType.Account.Fields.Name.Label}

Can the same be accomplished with custom metadata to get its label or fields?

Best Answer

The documentation does not state that you can access custom metadata via formulas, so it's pretty safe to assume that you cannot do so. For Visualforce, you could use Remoting or Remote Objects, and for Apex Code, you can use regular SOQL.

Related Topic