You are here:
Create a Relationship to a Custom Metadata Type or Entity Definition
Create direct relationships to a custom metadata type or entity definition.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Create direct relationships to a custom metadata type or entity definition.
| 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 |
| User Permissions Needed | |
|---|---|
| To create custom metadata relationships: | Customize Application |
Public custom metadata types can’t be related to protected custom metadata types.
If the Required box is checked, you can’t create a record for the parent types unless the child type has at least one record. A link to the records of the child custom metadata types is available from the parent custom metadata types record.
For entity definitions, select the standard or custom object that represents the entity definition.
You can now query your custom metadata type or entity definition using Apex.

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 are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security 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 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.