Posts

Showing posts with the label Salesforce Custom Metadata types. Salesforce Custom Settings

Custom Metadata types - Time to say goodbye to Custom Settings

Image
I was creating custom settings to store some configuration data. Clicked on the New button, and the custom setting creation page gave me a tip saying: Tip: Use Custom Metadata Types for App Configuration If you're thinking of using list custom settings, consider using custom metadata types instead. Unlike list custom settings, you can migrate the records of custom metadata types using using packages or Metadata API tools. That's when I came to know about the great features which Custom Metadata Types provide. Custom Metadata types are similar to Custom Settings with an added advantage that you don't have to load data post deploying them. The data in Custom Metadata type is stored as metadata and not data. So when you deploy Custom Metadata types, the data is also deployed along with it. Let's do quick comparison between Custom Metadata Type and Custom Settings and try to figure out when to use what. 1)  Data:  As mentioned above, data is stored