platform

Custom Metadata Types

Custom Metadata Types are a Salesforce platform feature that allows developers to define custom, deployable metadata records for configuration and data storage. They enable the creation of reusable, structured data sets that can be managed through the Salesforce UI or APIs, similar to custom objects but optimized for configuration rather than transactional data. This feature is particularly useful for storing application settings, reference data, or business rules that need to be version-controlled and deployed across environments.

Also known as: Custom Metadata, Metadata Types, CMT, Custom Metadata Records, Salesforce Custom Metadata
🧊Why learn Custom Metadata Types?

Developers should learn Custom Metadata Types when building scalable Salesforce applications that require configuration data to be managed as metadata, such as for feature toggles, integration endpoints, or validation rules. They are essential for scenarios where configuration needs to be deployed alongside code, as they support packaging and versioning, unlike custom settings which are data and not deployable. Use cases include multi-org deployments, managed packages, and applications needing environment-specific configurations without hardcoding values.

Compare Custom Metadata Types

Learning Resources

Related Tools

Alternatives to Custom Metadata Types