Posted on 12th Jan 2024 by Tanvi Chawke
In In the vast landscape of Salesforce, understanding customizations is like mastering the art of navigating a unique terrain. Let’s embark on a journey through Custom Settings and Metadata, not just as formal concepts but as your companions in the Salesforce universe.
Join us on a journey to discover its advantages and pave the way for innovation in your business.
Custom Settings: Tailoring Data for Your Needs
In the realm of Salesforce, Custom Settings act as the architects of tailored data, shaping it to fit seamlessly within your organization, profile, or even a specific user’s requirements. Think of them as the personalized touch that sets your Salesforce experience apart.
Versatile Data Usage:
Custom Settings flex their muscles in Formula fields, Validation rules, flows, Apex, and SOAP API. It’s not just data; it’s data that adapts and aligns with your workflow.
Efficient Cache Storage:
Stored in cache memory, Custom Settings offer a shortcut to accessibility. Retrieving data becomes a breeze, ensuring that your Salesforce experience is not just efficient but swift.

List or Hierarchy Options:
Just like custom objects, Custom Settings grant you the power to choose between List or hierarchy-based configurations. It’s customization that fits your organizational structure like a glove.
No Support for Relationship Fields:
In the world of Custom Settings, relationships are kept simple. They don’t support relationship fields, but sometimes simplicity is the key to efficiency.
Visibility in Test Classes:
While they shine in real-world scenarios, Custom Setting data prefers to stay behind the scenes in test classes, meaning, you need to create the data for custom settings before accessing them in your test methods. A small price for the greater good of your Salesforce customization.
Custom Metadata Types: Unveiling the Metadata Magic
In the world of Salesforce, metadata isn’t just data; it’s the story behind the data. Custom Metadata Types are the storytellers, providing context to your Salesforce records.
Similar to Custom Objects: Just as Custom Settings have their counterparts in custom objects, Custom Metadata Types share a similar bond. They are the next chapter in the story of data.
Packaging and Deployment: But unlike their counterparts, Custom Metadata Types are more mobile. They can be easily packaged and deployed, supporting a dynamic and flexible Salesforce environment.
Lookup Capabilities: Custom Metadata Types not only tell stories but also connect them. Establishing lookups between Custom Metadata objects adds a layer of depth to your Salesforce narrative.
Suffix Identification: In the language of Salesforce, Custom Metadata Types have a unique identifier. They bear the suffix “__mdt,” marking them as the architects of metadata tales.
Visibility in Test Classes: Unlike Custom Settings, Custom Metadata Types enjoy the limelight in test classes without the “SeeAllData” annotation. Their stories are meant to be shared.
Advantages of Custom Settings in Salesforce:
- No Query Learning Required:
With Custom Settings, there’s no need to delve into the complexities of SOQL or any other query language. It’s customization without the learning curve.
- Faster Data Access:
Custom settings offer a shortcut to data access. Stored directly in the application’s cache memory, they contribute to increased performance and efficiency.
- Data Integrity with Hierarchy:
Hierarchical Custom Settings are the guardians of data integrity. Providing different data for different users and roles, they ensure that your Salesforce environment maintains its structural integrity.
- Apex Operations:
In the realm of Apex, Custom Settings are not just passive data. They are action-packed, allowing operations like Create, Update, and Delete. It’s customization with a touch of dynamism.
- Database Query Optimization:
Here’s where Custom Settings play the optimization card. Accessing data through instance methods means avoiding the cumbersome path of additional SOQL queries to the database.
Disadvantages of Custom Settings in Salesforce
- Deployment Challenges:
Yet, every superhero has its kryptonite. Custom Setting data faces deployment challenges, requiring migration tools like Salesforce Data Loader for its journey.
- Field Limitations:
There’s a cap to the number of fields Custom Settings can have – a maximum of 300. A limit, perhaps, but still a canvas for your customization.
- Count Against Custom Objects:
In the realm of Salesforce, Custom Settings play a numbers game. They count against the total number of Custom Objects, adding a strategic layer to your customization choices.
- No Creation of Tabs:
Tabs, like those in other standard objects, cannot be created for Custom Settings. But who needs tabs when you have a world of customization at your fingertips?
Custom Metadata as a Solution:
To address these challenges, businesses often turn to Custom Metadata in Salesforce. It’s the next chapter in the Salesforce customization.
Coming Soon: Part 2! Dive deeper into the magic as we explore practical applications in your Apex code. Your Salesforce journey is about to get a whole lot more exciting!
