Skip to main content

Posts

Showing posts with the label SalesCloud

Latest Post

Custom Metadata Types vs Custom Settings vs Custom Labels

  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...

Trigger to check duplicates in salesforce using "from date" and "to date"

  Here is the Sample code to prevent update and insert records between from date and end date in salesforce. This trigger have two events:- before insert  and  before update trigger Duplicatecheck on <Obejct> (before insert,before update) {     set<object > ListOfrecords= new set<object >([SELECT id,Valid_Form__c,Valid_To__c FROM <object>]);     for(<object>  obj1 : ListOfrecords) {         for(<object> obj2: Trigger.new) {             if(obj2.VS_State__c== obj1.VS_State__c && obj2.vs_Tax_Type__c == obj1 .vs_Tax_Type__c){                 if((obj2.Valid_To__c >= obj1.Valid_Form__c&& obj2.Valid_To__c <= obj1 .Valid_To__c ) ||                    (obj2.Valid_Form__c>= obj1.Valid_Form__c&& obj2.Valid_To__c <= obj1 .Valid_To__c ) ||   ...

Exploring Different Salesforce Certifications: Unlocking Your Potential

Introduction: Salesforce is a leading customer relationship management (CRM) platform that enables organizations to streamline their sales processes and build stronger customer relationships. As a sales professional, acquiring Salesforce certifications can significantly enhance your career prospects and demonstrate your expertise in utilizing this powerful tool. In this blog post, we will delve into the various Salesforce certifications available, highlighting their benefits and guiding you on the path to becoming a certified Salesforce professional. 1. Salesforce Administrator Certification: The Salesforce Administrator Certification is ideal for individuals who are responsible for managing, configuring, and maintaining Salesforce implementations within their organizations. This certification validates your knowledge of Salesforce administration, including user management, security, data management, and workflow automation. By obtaining this certification, you become proficient in...

Popular Posts

Salesforce LWC Code for Multi-Select Lookup

Introduction: In Salesforce Lightning Web Components (LWC), implementing a multi-select lookup field can enhance the user experience and provide greater flexibility for selecting multiple related records. In this blog post, we will walk through the process of creating a multi-select lookup field using LWC. We will cover the required code snippets and provide step-by-step instructions to help you implement this functionality in your Salesforce org.