Salesforce中使用Custom Metadata Types以及Custom Settings

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 (Can’t use Global Picklist Value Set)
  • Text
  • Text Area
  • URL
  • Metadata Relationship

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 those two.

Functionality Custom Settings Custom Metadata
Unlimited calls/queries
CUD from Apex
Currency type field
Picklist type field
Metadata Relationship
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

Lightning Component中使用Promise处理Apex服务端请求... In Lightning Components, each communication with Apex Server-Side is handled as a Javascript async request, and the callback you set is called after the server-side action is completed. A server-side action can return any JSON object, such as sObject or a map of name-value pairs. The followoing s...
Pipeline for Salesforce – Be less busy, less... Overview Pipeline is a metadata deploy app for Salesforce, supports: ・Making Changeset with Excel file in seconds. ・Exporting Pipeline target metadata list to Excel file. ・No dependencies on Salesforce Org, deploying metadata between any different organizations. ・Deploying metadata base o...
Salesforce批量编辑 (Chrome扩展) – 在任何标准视图上进行批量插入, ... "Salesforce批量编辑"是今年发布的第二个Chrome扩展功能(第一个在这里),具备以下机能: ・轻松将标准列表视图转变成功能强大的批量编辑器 ・批量插入,批量拷贝,批量更新,批量删除,所有功能都具备,同时支持Classic跟Lightning! ・支持将数据导出到CSV文件中 ・支持从Excel直接拷贝粘贴复数行・复数列的数据 "Salesforce批量编辑"支持几乎所有的Salesforce列表视图、no页面跳转,no附加设定,no kidding。 注意 : 在Classic上使用时,请确保不要勾选“Session Settings”中的“Require H...
Salesforce Smart Importer – 1-Drag to import... This is my third Chrome Extension named Salesforce Smart Importer (Other two popular extensions are Salesforce Mass Editor and Salesforce DevTools), it is designed for Salesforce not only admin but also normal user, supports : ・1-Drag to import any Excel / CSV data on anywhere in Salesforce, both ...