Using Custom Metadata Types and Custom Settings in Salesforce

Custom Metadata is one of the new features that released at Summer’15 of Salesforce, which is customizable, deployable, packageable, and upgradeable application metadata, and it supports the following custom field types.
  • Checkbox
  • Date
  • Date and Time
  • Email
  • Number
  • Percent
  • Phone
  • Picklist
  • Text
  • Text Area
  • URL

The setting page of Custom Metadata is similar to Custom Object’s as the following image:
Custom Metadata Type  Country   Salesforce   Developer Edition
It also supports Page Layouts Assignment, as the below:
Country   Salesforce   Developer Edition
And the data(records) of Custom Metadata Types can be edited directly as Metadata from Sublimie Text 3. Sublime Text 3

Differences between Custom Metadata and Custom Settings

So which one should we choose between Custom Metadata and Custom Settings?
Here is some comparisons between these two.

Functionality Custom Settings Custom Metadata
Unlimited calls/queries
CUD from Apex
Currency type field
Picklist type field
Associate for an organization,
profile, or specific user
Metadata deploy Only definitions Definitions and records
Apex tests Needs to create test data Directly access
Translation Workbench Not supported Still not supported
(Maybe will be supported in the future…)

Enjoy It!

Related Post

RunTest with Salesforce Tooling REST API (asynchro... Salesforce supports running test with Tooling REST API ,which are runTestsAsynchronous and runTestsSynchronous. Reference: In this post I'll show you what is the difference between runTestsAsync...
Using Aggregate SOQL queries/results in Batch Apex In previous post, we had created a schedulable batch apex that implements Database.Batchable in Salesforce, but if you want to use SOQL having aggregate functions like SUM(), MAX(), COUNT() on results grouped by “GROUP BY” clause in start execution, changing to interface Database.Ba...
Access Salesforce data via APIs(JSForce) from Outs... At previous post,I had shared you how to setup an 《Awesome Node.js development environment with Heroku and Cloud9》. Today I will continue to share about how to access Salesforce data via APIs from Outside Service. JSforce JSforce (f.k.a. Node-Salesforce) is a isomorphic JavaScript Library utilizi...
Calculate the difference between two DateTimes in ... In Formula Calculate the second difference between two DateTimes. In Visualforce Page Calculate the second difference between two DateTimes. In Apex ※A "...