Difference Between Custom Settings and Custom Metadata Types in Salesforce

Custom Settings :

  • Custom settings enable you to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database.
  • You can access custom setting data using instance methods and can avoid SOQL queries to database.

Custom Metadat Types :

  • Custom metadata are like custom setting but records in custom metadata type considered as metadata rather than data. These are typically used to define application configurations that need to be migrated from one environment to another, or packaged and installed.
  • You can create lookups between Custom Metadata objects.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
TechGuy

Tech enthusiastic, life explorer, single, motivator, blogger, writer, software engineer