Salesforce中使用Custom Metadata Types以及Custom Settings
- 7月
- 07
- Posted by Lin
- Posted in Custom Metadata, Custom Setting, 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 (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:
It also supports Page Layouts Assignment, as the below:
And the data(records) of Custom Metadata Types can be edited directly as Metadata from Sublimie Text 3.
Here is some comparisons between those two.
Enjoy It!
• Checkbox
• Date
• Date and Time
• 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:

It also supports Page Layouts Assignment, as the below:

And the data(records) of Custom Metadata Types can be edited directly as Metadata from Sublimie 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 |
◯(Hierarchy) | ☓ |
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!
Post Tagged with Currency, Custom Metadata, Custom Settings, Metadata, Picklist, Salesforce, Sublime Text 3
近期文章
- Salesforce DevTools Release Notes (version 3.10.0) – mass edit custom fields on lightning
- Salesforce DevTools Release Notes (version 3.9.0)- Object Fields, SOQL Query Editor
- Salesforce DevTools Release Notes (version 3.8.0)
- Salesforce DevTools的开发者用户突破10,000名!THANK YOU!
- Lightning Component中使用Promise处理Apex服务端请求
Top Posts
- Salesforce DevTools – Saleforce开发者必备Chrome扩展 - 185.8K views
- Date format 与 DateTime format - 161.6K views
- Salesforce批量编辑 (Chrome扩展) – 在任何标准视图上进行批量插入, 拷贝, 更新, 删除, 支持Classic与Lightning! - 126.1K views
- 用Sublime Text 3架设Salesforce的快速开发环境 - 116.9K views
- 编写一个可被计划执行的Batch Apex - 90K views
分类目录
- APEX
- 应用
- Custom Label
- Custom Metadata
- Custom Setting
- Design & UI
- 交流会
- Heroku
- iOS & Object-c
- Lightnint Component
- Linux & Mac OS
- Metadata API
- Node.js
- Open Source
- Other
- PHP Framework
- Release Notes
- REST API
- Salesforce
- Salesforce DevTools
- Salesforce DX
- SOQL
- Tooling API
- Unit Tests
- Validation Rule
- Visualforce
- WordPress
您必须登录才能发表评论。