Difference between Custom Settings and Custom Metadata Types in Salesforce? | what is custom settings and custom metadata in salesforce
There are two type of Custom Setting List and Hierarchy.
List custom setting:- List custom setting provides a reusable set of static data that can be accessed across your organization to all user.
Hierarchy custom setting:- Hierarchy custom setting uses a built-in hierarchical logic for specific profiles or users. It can be used in to OWD role hierarchy.
Custom Metadata:- It describe the structure of object and there field as well as the page layout associated with them. It is used to define application configurations that need to be migrated from one environment to another, or packaged and installed
We can go through the details of difference between "Custom Settings and Custom Metadata" given below table:-
➡ To know more details about custom settings and custom metadata, Click Here.
Custom Settings | Custom Metadat Types |
---|---|
It is similar to custom object, Where we can create field like text, date, text area, checkbox, currency, email, number, phone, percent etd, but do not create any kind of lookup relationship. | It describe the structure of object and there field, as well as the page layout associated with them. |
here are 2 types of custom setting, List and Hierarchy. Once you create custom setting, then you cannot change the type (List to hierarchy or vice versa). | It is used to define application configurations that need to be migrated from one environment to another, or packaged and installed. |
List custom setting provides a reusable set of static data that can be accessed across your organization to all user. | You can control the visibility of Custom Metadata Types by specifying it as public or protected. If it is marked as public type, then anyone can see it. If it is marked as protected type, in the installed managed package subscriber organization, only Apex code in that managed package can use it. |
Hierarchy custom setting uses a built-in hierarchical logic for specific profiles or users. It can be used in to OWD role hierarchy. | |
Custom settings do not support relationship fields. | You can createYou can access custom setting data using instance methods and can avoid SOQL queries to database. lookups between Custom Metadata objects. |
You can access custom setting data using instance methods and can avoid SOQL queries to database. | |
While migrating custom setting to another org, It only deploys the metadata, you need to upload data into the custom setting post deployment. | |
Custom setting can be used by formula fields, validation rules, flows, Apex, and the SOAP API. | |
You cannot access List custom setting in Validation rule. Only Hierarchy custom setting can be used. | |
You can perform CUD (Create, Update, Delete) operation on custom setting in apex. | You cannot perform CUD (Create, Update, Delete) operation on custom metadata type in apex. |
Custom settings are not visible in test class without “SeeAllData” annotation. | Custom metadata type are visible in test class without “SeeAllData” annotation. |
You can control the visibility of custom setting by specifying it as public or protected. If custom setting is marked as protected, the subscriber organization will not be able to access the custom setting. If it is marked as public, then subscriber org can also access it. |
➡ To know more live demo source code in Salesforce lightning, Trigger, Visualforce & LWC, Use this link..
In this blog I get a great post please also visit my blog I post a great content https://techkashif.com/maharashtra-girls-whatsapp-group-links-5/
ReplyDeleteGreat
ReplyDeletegreat post
ReplyDeleteGreat post. Keep it up. Gifts for men
ReplyDelete
ReplyDeleteone liner current affairs
current affairs 2020
current affairs 2021
Amazing Blog and Content , Check out :- Adani Group of Companies Analysis - Adani Green Energy, Transmission, Gas, Power, Enterprises, Ports
ReplyDeleteAmazing blog and Content , Top 5 Electric Vehicle (EV) Stocks By Market Cap in 2021 | Best Electric Cars Stocks
ReplyDeleteAwesome Blog and Content , Home First Finance Company (HFFC) IPO Review & Details - HFFC IPO Share Price, Date, News
ReplyDeleteNice Blog
ReplyDeleteDo Follow 5 Backlinks
Awesome blog and content, Top 10 Stocks With Highest Net Profit
ReplyDelete
ReplyDeleteYou are doing great a job.
Awesome blog and Content keep going, Tata group of companies Analysis - TCS, Tata ELXSI, Tata Motors, Tata Coffee, Trent, Titan, Voltas
ReplyDeleteAwesome content and blog , Brookfield India REIT IPO | Upcoming IPO 2021
ReplyDeleteKeep Going Awesome Blog , When to Buy and Sell Stocks | Stock Market for Beginners 2021
ReplyDeleteYour content is Helpful and Keep going for a good future Nureca IPO - Nureca Limited IPO Review, Details, Share Price, Launch Date, News | Upcoming IPO 2021
ReplyDeleteamazing blog and content RailTel IPO Review - Date, Details, Business, Financials, Price Band, Lot Size | Upcoming IPO 2021
ReplyDeleteBEST BLOG and CONTENT
ReplyDeleteHow to Hide Instagram Chat and Activity in 2021
Hide instagram message notification | Disable Direct Messages On Instagram | Hide Instagram DMs/Chats Without Deleting Them
Awesome article. I like it
ReplyDeleteAlso read: How to create Gmail Account in Hindi? ईमेल कैसे बनाएं?
Thanks for sharing this information.
ReplyDeleteBest Business ERP & CRM
Thanks for sharing this informational post
ReplyDeleteFacebook pva accounts
Facebook pva accounts
How to buy Pinterest accounts
Buy Pinterest accounts
gmail pva accounts
It is a nice blog.
ReplyDeletehttps://tutorialform.com/how-to-create-facebook-account/
Nice Ideas Please Keep It Up
ReplyDelete40 High Demand Gigs on Fiverr – Most Selling Gigs on Fiverr 2021
It has helped other sectors of the economy like agriculture, industry and the service industry. The resources of the country are being used for deriving the highest possible output for the benefit of the society. Salesforce training in India
ReplyDeletenice blog and help a lot
ReplyDeleteAwesome Blog
ReplyDeleteDownload Windows 11 ISO file [32, 64 bit] Complete Setup Guide
Awesome blog
ReplyDeleteOne click Bitcoin Mining Zero Investment