When you create a custom metadata type, you can reference its values
in an advanced formula field. If a field value changes, you can update it in the custom
metadata type instead of changing multiple, hard-coded formulas. If you use packaging, define
the logic you want and allow your subscribers to customize the details.
Required Editions
Available in: Salesforce Classic and Lightning Experience
Available in: Enterprise, Performance, Unlimited, and
Developer Editions
You can create, edit, and delete custom metadata type
records from installed packages in: Group and Professional
Editions
Example Let’s say that you want to validate that the amount in the Account object’s Annual
Revenue field is greater than 0 and does not exceed $100 billion.
Create a custom metadata type. In this example, we name it Min and Max Amounts.
Create two custom fields for your type named Minimum Revenue and Maximum Revenue.
Create a record, and name it FY19.
Now reference the custom metadata record in a formula field. The syntax
is:
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.