You can package custom metadata types and records in unmanaged packages, managed
packages, or managed package extensions. Your packages can then be installed in Professional,
Developer, Enterprise, Performance, Unlimited, and Database.com Edition
organizations.
Required Editions
Available in: Salesforce Classic and Lightning Experience
Protected custom metadata types in managed packages are available in:
Developer Edition and scratch orgs
Package uploads and installs are
available in Group, Enterprise, Performance,
Unlimited, and Developer Editions
Create, edit, and delete
custom metadata type records from installed packages Group and
Professional Editions
You can add custom metadata types and records to packages using the Lightning Platform user
interface. From Setup, enter Packages in the Quick
Find box, then select Packages, click your package name,
and then click Add.
Note You can’t uninstall a package with a custom metadata type if you’ve created your own
records of that custom metadata type.
As with all packageable metadata components, you can also add custom metadata types and
records to a package by specifying the package’s full name in
package.xml. For example, we specify the package in this fragment
from Relaxation Gauntlet’s package.xml
file.
Select the custom metadata type you want to add to your package.
Click Add to Package.
Add Custom Metadata Records
Select the custom metadata type’s label from the available component types—for
example, Threat Tier, or if the type is from a
package that you’re extending, Threat Tier
[vacations].
Select the records to add.
Click Add to Package.
If you add a record to your package, its corresponding type is automatically added.
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.