1

I am wondering to know if it is possible to use a Custom Metadata Type inside an Email Template. I'm moving from Custom Setting to Custom Metadata Type and this feature could be great.

Regarding the Custom Setting, only if we use a Hierarchy Custom Setting we can do that.

Thanks

2

You can use custom metadata types in SObject Formula fields so the following works fine (example):

On Contact SObject

New formula field (text) Foo__c with value

$CustomMetadata.MyCustomMetadataType__mdt.SomeDeveloperNameOfRow.SomeFieldName__c

In email template:

Hello {!Foo__c}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.