Skip to main content

Posts

Showing posts with the label fields

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

Create object, fields CSV file in salesforce using apex

 Below is sample code to to get all object and their fields in CSV using apex in salesforce. In this sample code we are getting objects using namespace and making CSV file. pubLIC class ObjectFieldsinReport{     public void makecsvwithobjectandfield(){         map<string, SObjectType> objs = schema.getGlobalDescribe();         string header = 'Object Name, Field, Label \n';         string finalstr = header ;         for(string key: objs.keySet()){             //if condtion to handle namespace objects //remove this  key.startsWithIgnoreCase('Your objects namespace') if you want to use all objects             if(key.startsWithIgnoreCase('Your objects namespace') && key.endsWithIgnoreCase('__c')){                 map<string, string> fieldList = new map<string, string>...

A Simple Way to Understand Salesforce

Introduction: Salesforce is a powerful cloud-based customer relationship management (CRM) platform that has revolutionized the way businesses manage their sales, customer service, marketing, and more. However, understanding Salesforce can sometimes be a daunting task for newcomers. In this blog post, we will break down Salesforce into simple terms and provide you with a basic understanding of its key components and functionalities.

Popular Posts