Custom Metadata Types vs Custom Settings vs Custom Labels 💬 In plain words: Three lookalikes: Custom Metadata = configuration that DEPLOYS with your code (best for app settings). Custom Settings = org/user-specific values, changeable at runtime (hierarchy type is great for bypass switches). Custom Labels = translatable text for the UI. 📌 Example: API endpoint URLs per environment → Custom Metadata (deploys with code, sandbox vs prod values). A 'Bypass_Automation__c' checkbox an admin flips during data load → hierarchy Custom Setting. The word 'Submit' translated to Hindi → Custom Label. 🎬 Real-Life Example: The Fee Table Trapped Inside Code Skyline charges a different delivery fee per city. Apex needs those rates on every booking. The Old/Bad Way: if (city == 'Delhi') fee = 50. Else if (city == 'Mumbai') fee = 65. … Every rate change is a code change, a test run, and a deployment. Why this is bad: Business data is trappe...
Introduction: In Salesforce, managing products, pricebooks, and pricebook entries is crucial for any organization that deals with sales and pricing. These features play a vital role in maintaining accurate pricing information and effectively managing sales processes. In this blog post, we will explore the concepts of products, pricebooks, and pricebook entries in Salesforce, their significance, and how they work together to streamline your sales operations. 1. Understanding Products: Products in Salesforce represent the goods or services that your organization offers. Whether you sell physical products or provide services, products serve as the foundation for your sales process. When creating a product, you define its attributes, such as name, description, SKU, and any other relevant details. Products can be associated with pricebooks and used in sales transactions. 2. Introduction to Pricebooks: A pricebook in Salesforce is a catalog or a collection of products with their corre...