Custom Settings
- Custom settings helps to create custom data set and associate the data set to particular user, profile or for all users (org-wide).
- There are 2 types of custom setting, List and Hierarchy
- Same set of data is available to all user if we define List custom setting.
- In Hierarchy custom setting, you can control data visibility based on logged in user, profile or org-wide.
- In Hierarchy custom setting for logged in user, system first check user then profile and then org wide setting in order to return data from hierarchy custom setting.
- 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.
- Once you create custom setting, then you cannot change the type (List to hierarchy or vice versa).
- Custom setting data is available in application cache which increase performance.
- You can access custom setting data using instance methods and can avoid SOQL queries to database.
- While migrating custom setting to another org, you need to migrate data for custom setting separately.
- Custom settings do not support relationship fields.
- 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.
- In order to use value from list custom setting in validation rule, create a field in object and populate list custom setting value in custom field through triggers and then refer it in validation rule. Validation rule fires after trigger execution.
- You can perform CUD (Create, Update, Delete) operation on custom setting in apex.
- Custom settings are not visible in test class without "SeeAllData" annotation.
Custom Metadata Types
- Custom metadata are like custom setting but records in custom metadata type considered as metadata
- You can migrate data present in custom metadata type to different org easily.
- This helps to create app configuration data and include it in package.
- Custom metadata types support Metadata Relationship. It is still in Beta.
- Metadata Relationship provides the ability to add relationships from your custom metadata to other things in your app, such as other custom metadata, custom or standard objects and fields, and static resources.
- You can't perform CUD (Create, Update, Delete) operation on custom metadata type in apex.
- You can also control the visibility of custom metadata type while adding it in package.
- Custom metadata type are visible in test class without "SeeAllData" annotation.
Custom metadata types are still in development phase and many new features will come in coming future.
More Blogs>>: Asynchronous Apex- Apex Scheduler, Batch Apex & Future Methods Implementation Tricks
Encoding and Decoding Data in Salesforce
Onclick Javascript-AJAX Toolkit
Refer Below Links for Salesforce Interview Questions
Validation Rules
Process Builder
Workflow & Approval Process
Reports & Dashboards
Data Management
Sharing & Security
Salesforce Objects & Fields
Process Builder
Workflow & Approval Process
Reports & Dashboards
Data Management
Sharing & Security
Salesforce Objects & Fields
I am feeling great to read this.you gave a nice info for us.please update more.
ReplyDeletePython Training in Chennai
Python Training in T.Nagar
JAVA Training in Chennai
Big data training in chennai
Selenium Training in Chennai
Python Training in Chennai
Python Training in Tambaram
I would definitely thank the admin of this blog for sharing this information with us. Waiting for more updates from this blog admin.
ReplyDeletemicrosoft dynamics crm training in chennai
microsoft dynamics training in chennai
Tally Course in Chennai
ReactJS Training in Chennai
PHP Training in Chennai
ui design course in chennai
Angularjs Training in Chennai
CCNA Training in Chennai
Web Designing Course in chennai
1movies
ReplyDeletegomovies
ReplyDeletemovies whatsapp groups
ReplyDeleteThis is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.
ReplyDeleteCRM Software| CRM System | CRM
Digital marketing agecny
ReplyDeleteDigital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
Digital marketing agecny
A couple of the numerous unobtrusive changes that might be found on packaging machines of a similar sort are portrayed beneath to all the more likely comprehend the LPS meaning of custom packaging hardware.https://www.dukepackaging.com/
ReplyDeleteThanks for sharing an information to us.
ReplyDeleteSalesforce Online Training
This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this..software development company in chennai. Thanks for sharing this information, this is useful to me.
ReplyDeleteOne of the best blogs that I have read till now. Thanks for your contribution to sharing such useful information. Waiting for your further updates. ui ux course in pune
ReplyDelete