Custom Metadata for storing application configuration data
- johnsontitus
- Jun 12, 2020
- 1 min read
A newer alternative to custom settings forstoring configuration data is called custom metadata.
As with custom settings,custom metadata records appear as sObjects in Apex so you can use SOQL to retrieve them just like you would for a standard or custom object.
eg:
List<Support_Tier__mdt> minSpent = [SELECT Id, DeveloperName, Minimum_Spending__c from Support_Tier__mdt];
To learn more:

Comments