Skip to content
  • Surfmyindia |
  • Lifedreamguide |
  • w3webmart |
  • Overstockphoto |
  • News24globalworld |
  • News24classictimes |
  • Incriediableindia |
  • TechW3web |
  • W3Force ..
w3web.net
Sign Up to Get Free Code Access → |
  • Home
  • Tutorial
    • Lightning Component
    • Salesforce LWC
    • Salesforce Integration
    • Visualforce
    • Trigger
    • JQuery
  • Get Free Courses
  • Integration
  • Aura Comp
  • Salesforce LWC
  • Visualforce
  • Trigger
  • JQuery
  • React Js
  • More
    • About Us
    • Contact Us
    • Sitemap
    • Course Pricing
    • Blog
    • Gallery
    • Most Popular Articles
    • Download E-Book
    • YouTube Channel


Example with a Named Credential and custom metadata setup of Rest API POST + GET + PUT + PATCH, and DELETE in Salesforce | Named Credentials POST + GET REST API integration example to a real-world production-level setup using Named Credentials and Custom Metadata Types.

November 25, 2025 by Vijay Kumar
252 views

Hey guys, today in this post we are going to learn about Example with a Named Credential and custom metadata setup of Rest API POST + GET + PUT + PATCH, and DELETE in Salesforce | Named Credentials POST + GET REST API integration example to a real-world production-level setup using Named Credentials and Custom Metadata Types in Salesforce.

This is exactly how professional Salesforce developers handle secure API integrations — by removing all hardcoded URLs, headers, and credentials from Apex.

🌐 Real-World Goal

We’ll refactor your previous ContactAPICalloutService class to:

  • Store API URLs securely in Named Credentials.
  • Store configuration values (like API endpoints or page numbers) in Custom Metadata Type (CMDT)
  • Keep Apex clean, maintainable, and reusable

 

🏗 Step 1. Create a Named Credential

🔹 Path:

Setup → Named Credentials → New Named Credential

Field Value
Label ReqRes API
Name ReqRes_API
URL https://reqres.in
Identity Type Anonymous
Authentication Protocol No Authentication
Generate Authorization Header Unchecked

✅ Save

This means you can now use:


🎁 Up to 99% Off Courses (Coupon)
💥 Use Promo Code: STANDARDOFFER💥
🚀 Get Free Salesforce Course Access: www.thevijaykumar.w3web.net

 

  1.   callout:ReqRes_API

 

in Apex safely — without hardcoding the domain.

🧱 Step 2. Create a Custom Metadata Type

CMDT Name: External_API_Config__mdt

Field Label API Name Type Example Value
API Name DeveloperName Text ReqRes_Config
POST Endpoint Post_Endpoint__c Text /api/users
GET Endpoint Get_Endpoint__c Text /api/users?page=1
Active IsActive__c Checkbox TRUE

✅ After saving the CMDT, click Manage Records → New Record, and create one record:

Label: ReqRes Config

Developer Name: ReqRes_Config

Post Endpoint: /api/users

Get Endpoint: /api/users?page=1

Is Active: ✅ Checked

 

⚙️ Step 3. Updated Apex Class Using Named Credential + CMDT


  1.  
  2.   public class MyRestApiNamedCredentialCtrl {
  3.  
  4.     private static External_API_Config__mdt getActiveConfig(){
  5.  
  6.         List<External_API_Config__mdt> getActiveConfig = [SELECT Post_Endpoint__c, Get_Endpoint__c, API_Key__c, Secret_Key__c FROM External_API_Config__mdt WHERE IsActive__c = TRUE ];
  7.         RETURN getActiveConfig[0];        
  8.  
  9.     } 
  10.  
  11.  
  12.     // ========== POST CALLOUT ==========
  13.     //@future(callout=TRUE)
  14.     public static List<Contact> sendContactToExternalAPI() {
  15.         List<Contact>  conObjList = NEW List<Contact>();
  16.         try {
  17.             //Contact con = [SELECT Id, FirstName, LastName, Email FROM Contact WHERE Id = :contactId LIMIT 1];
  18.             External_API_Config__mdt config = getActiveConfig();
  19.  
  20.             Http http = NEW Http();
  21.             HttpRequest req = NEW HttpRequest();
  22.             req.setEndpoint('callout:ReqRes_API' + config.Post_Endpoint__c);
  23.             req.setMethod('POST');
  24.             req.setHeader('Content-Type', 'application/json');
  25.             req.setHeader(config.API_Key__c, config.Secret_Key__c);
  26.           /*  
  27.             Map<String, Object> body = new Map<String, Object>{
  28.                 'first_name' => con.FirstName,
  29.                 'last_name'  => con.LastName,
  30.                 'email'      => con.Email
  31.             };
  32.          */
  33.             Map<String, Object> bodyData = NEW Map<String, Object>();  
  34.             bodyData.put('fname','Vijay02');
  35.             bodyData.put('lname','Kumar');
  36.             bodyData.put('email','exampleApi@example.com');
  37.             bodyData.put('phone','666');
  38.             req.setBody(JSON.serialize(bodyData));
  39.  
  40.             HttpResponse res = http.send(req);
  41.             System.debug('POST Status: ' + res.getStatusCode());
  42.             System.debug('res Data: ' + res);
  43.  
  44.  
  45.             IF (res.getStatusCode() == 200 || res.getStatusCode() == 201) {
  46.                 Map<String, Object> resMap = (Map<String, Object>) JSON.deserializeUntyped(res.getBody());
  47.  
  48.                 string fname = (string)resMap.get('fname');
  49.                 string lname = (string)resMap.get('lname');
  50.                 string email = (string)resMap.get('email');
  51.                 string phone = (string)resMap.get('phone');
  52.                 //system.debug('resMap ' + resMap);
  53.  
  54.                 Contact conItem = NEW Contact();
  55.                 conItem.FirstName = fname;
  56.                 conItem.LastName = lname;
  57.                 conItem.Email = email;
  58.                 conItem.Phone=phone;
  59.  
  60.                 INSERT conItem;
  61.                 system.debug('recId' + conItem.Id);
  62.  
  63.                 conObjList.add(conItem);
  64.  
  65.  
  66.                 System.debug('✅ POST Success — record inserted');
  67.             } ELSE {
  68.                 System.debug('❌ POST Error: ' + res.getBody());
  69.             }
  70.         } catch (Exception e) {
  71.             System.debug('⚠️ POST Exception: ' + e.getMessage());
  72.         }
  73.  
  74.         system.debug('conObjList' + conObjList);
  75.         RETURN conObjList;
  76.  
  77.     }
  78.  
  79.  
  80.  
  81.         // ========== GET CALLOUT ==========
  82.         // 
  83.  
  84.      //@future(callout=TRUE)
  85.     public static List<External_User__c> getExternalUserData() {
  86.         List<External_User__c> usersList = NEW List<External_User__c>();
  87.         try{
  88.  
  89.             External_API_Config__mdt config = getActiveConfig();
  90.  
  91.             Http h = NEW Http();
  92.             HttpRequest req = NEW HttpRequest();
  93.             req.setEndpoint('callout:ReqRes_API' + config.Get_Endpoint__c);
  94.             req.setMethod('GET');
  95.             req.setHeader('Content-Type', 'application/json');
  96.             req.setHeader(config.API_Key__c, config.Secret_Key__c);
  97.  
  98.             HttpResponse res = h.send(req);
  99.  
  100.             system.debug('status ' + res.getStatusCode());
  101.             //System.debug('GET Status: ' + res.getStatusCode());
  102.  
  103.             IF(res.getStatusCode() == 200 || res.getStatusCode() == 201){
  104.                 Map<string, Object> resMap = (Map<string, Object>) JSON.deserializeUntyped(res.getBody());
  105.                 List<Object> objList = (List<Object>) resMap.get('data');
  106.  
  107.                 system.debug('resMap ' + resMap);
  108.                 system.debug('objList ' + objList);
  109.  
  110.  
  111.  
  112.                 FOR(Object obj: objList){
  113.  
  114.                     Map<string, Object> objRes = (Map<string, Object>) obj;
  115.                     External_User__c USER = NEW External_User__c();
  116.                     //system.debug('objRes ' + objRes);
  117.                     String first_name = (String) objRes.get('first_name');
  118.                     String avatar = (String) objRes.get('avatar');
  119.                     String last_name = (String) objRes.get('last_name');
  120.                     String email = (String) objRes.get('email');
  121.  
  122.                     USER.First_Name__c = first_name;
  123.                     USER.Last_Name__c = last_name;
  124.                     USER.Email__c = email;
  125.                     USER.Avatar_URL__c = avatar;
  126.  
  127.                     usersList.add(USER);
  128.                 }
  129.  
  130.  
  131.  
  132.             }
  133.  
  134.  
  135.  
  136.         }catch(Exception e){
  137.            System.debug('⚠️ GET Exception: ' + e.getMessage());
  138.  
  139.         }
  140.  
  141.         system.debug('usersList' + usersList);
  142.         RETURN usersList;
  143.     }
  144.  
  145.  
  146.  
  147.      // ========== PUT CALLOUT ==========
  148.         // 
  149.  
  150.      //@future(callout=TRUE)
  151.      //
  152.     public static void putDataService(Id recordId){
  153.  
  154.         try{
  155.  
  156.              External_API_Config__mdt config = getActiveConfig();
  157.  
  158.             Contact con = [SELECT Id, FirstName, LastName FROM Contact WHERE Id =:recordId];
  159.  
  160.             Http h = NEW Http();
  161.             HttpRequest req = NEW HttpRequest();
  162.             //req.setEndpoint('callout:ReqRes_API' + config.Post_Endpoint__c);
  163.             req.setEndpoint('https://reqres.in/api/users/');
  164.             req.setMethod('PUT');
  165.             req.setHeader('Content-Type', 'application/json');
  166.             req.setHeader(config.API_Key__c, config.Secret_Key__c);            
  167.             req.setBody('{"name":"Vjy2", "email":"vjy@example.com"}');
  168.  
  169.  
  170.             HttpResponse res = h.send(req);
  171.  
  172.             system.debug('StagusCode ' + res.getStatusCode());
  173.  
  174.             IF(res.getStatusCode() == 200 || res.getStatusCode() == 201){
  175.  
  176.                Map<String, Object> resMap = (Map<String, Object>) JSON.deserializeUntyped(res.getBody());
  177.                 system.debug('resMap ' + resMap);
  178.  
  179.                 string name = (String) resMap.get('name');
  180.                 string phone = (String) resMap.get('phone');
  181.  
  182.  
  183.  
  184.                 con.LastName = name;
  185.                 con.Phone = phone;
  186.                 con.Id = con.Id;
  187.  
  188.                 UPDATE con;
  189.             }
  190.  
  191.  
  192.  
  193.         }catch(Exception e){
  194.  
  195.             system.debug('Exception ' + e.getMessage());
  196.         }
  197.  
  198.     }
  199.  
  200.  
  201.      // ========== PATCH CALLOUT ==========
  202.         // 
  203.  
  204.      //@future(callout=TRUE)
  205.      //
  206.  
  207.  
  208.     public static void patchDataService(Id recordId){
  209.         try{
  210.             Contact con = [SELECT Id, FirstName, LastName FROM Contact WHERE Id=:recordId];
  211.  
  212.             External_API_Config__mdt config = getActiveConfig();
  213.  
  214.              Http h = NEW Http();
  215.             HttpRequest req = NEW HttpRequest();
  216.             //req.setEndpoint('callout:ReqRes_API' + config.Post_Endpoint__c);
  217.             req.setEndpoint('https://reqres.in/api/users/');
  218.             req.setMethod('PATCH');
  219.             req.setHeader('Content-Type', 'application/json');
  220.             req.setHeader(config.API_Key__c, config.Secret_Key__c);            
  221.             req.setBody('{"name":"Vjy_02", "email":"vjy@example.com"}');
  222.  
  223.             HttpResponse res = h.send(req);            
  224.             system.debug('StagusCode ' + res.getStatusCode());
  225.  
  226.             IF(res.getStatusCode() == 200 || res.getStatusCode() == 201){
  227.                Map<String, Object> resMap = (Map<String, Object>) JSON.deserializeUntyped(res.getBody());
  228.  
  229.                 String lname = (String) resMap.get('name');
  230.                 String email = (String) resMap.get('email');
  231.  
  232.                 IF(con.LastName == lname){
  233.                    con.LastName = lname;
  234.                    con.Email = email;
  235.                    con.Id =  con.Id;
  236.                     UPDATE con;    
  237.                     system.debug('Updated ' + con.Id);
  238.                 }ELSE{
  239.                     Contact conObj = NEW Contact();
  240.                     conObj.LastName = lname;
  241.                     conObj.Email = email;
  242.                     INSERT conObj;
  243.                     system.debug('Inserted ' + conObj.Id);
  244.                 } 
  245.  
  246.             }
  247.  
  248.         }catch(Exception e){
  249.  
  250.             system.debug('Exception ' + e.getMessage());
  251.  
  252.         }
  253.  
  254.     }
  255.  
  256.  
  257.  
  258.     // ========== DELETE CALLOUT ==========
  259.         // 
  260.  
  261.      //@future(callout=TRUE)
  262.      //
  263.  
  264.     public static void deleteDataService(Id recordId){
  265.  
  266.         try{
  267.  
  268.             Contact con = [SELECT Id, FirstName, LastName FROM Contact WHERE Id=:recordId];
  269.  
  270.         External_API_Config__mdt config = getActiveConfig();
  271.  
  272.             Http h = NEW Http();
  273.             HttpRequest req = NEW HttpRequest();
  274.             //req.setEndpoint('callout:ReqRes_API' + config.Post_Endpoint__c);
  275.             req.setEndpoint('https://reqres.in/api/users/');
  276.             req.setMethod('DELETE');
  277.             req.setHeader('Content-Type', 'application/json');
  278.             req.setHeader(config.API_Key__c, config.Secret_Key__c); 
  279.  
  280.            HttpResponse res = h.send(req);            
  281.            system.debug('StagusCode ' + res.getStatusCode());
  282.  
  283.             DELETE con;
  284.  
  285.             system.debug('Record Deleted Successfully');
  286.  
  287.  
  288.         }catch(Exception e){
  289.            system.debug('Exception ' + e.getMessage()); 
  290.         }
  291.  
  292.  
  293.     }    
  294.  
  295.  
  296. }

 

🧪 Step 4. Test in Execute Anonymous Window

🔹 For POST Callout

  1.   Contact testCon = NEW Contact(FirstName='Vijay', LastName='Kumar', Email='vijay@example.com');
  2. INSERT testCon;
  3. MyRestApiNamedCredentialCtrl.sendContactToExternalAPI(testCon.Id);
  4. System.debug('🚀 POST API Callout triggered using Named Credential + CMDT');

 

🔹 For GET Callout

  1.   ContactAPICalloutService.getExternalUserData();
  2. System.debug('🚀 GET API Callout triggered using Named Credential + CMDT');

 

📊 Step 5. Debug Results

  • Check Setup → Apex Jobs for async job results.
  • Check your Custom Objects (External_Response__c and External_User__c) for inserted data.
  • Observe System.debug logs for response details.

 

✅ Advantages of This Setup

Feature Description
🔒 Secure No hardcoded URLs or credentials in Apex
⚙️ Configurable Admins can change API endpoints directly from CMDT
🔁 Reusable Same class can work for multiple APIs with just new CMDT records
🧰 Scalable Easily add headers, authentication tokens, or more configs later

 

Further post that would you like to learn in Salesforce

  • Trigger on contact to update a account custom field | Write a trigger on contact and update the account custom field uses of apex trigger in Salesforce
  • Create a Apex Trigger on Account to Update the Associated Contact Account Name Null Whenever Account Record is Updated in Salesforce
  • Trigger to check duplicate name to custom object in Salesforce | how to prevent duplicate records based on multiple fields through apex trigger in Salesforce
  • Write a Apex trigger to Add the Contact First Name and Last Name to Associated Account Custom Field Whenever the Contact inserted or Updated in Salesforce
  • Trigger to update parent records field when child record is updated | update parent field from child using apex trigger
  • How to call invocable method (@InvocableMethod) from APEX Controller to convert automatic lead to Account, Contact and Opportunity Uses of Flow Builder/Flow Action in Salesforce
  • Write a trigger to update parent account phone number whenever the contact phone number is updated using trigger handler and helper class in Salesforce
  • Trigger on custom object to prevent delete the related list record based on lookup relation whenever trying to delete parent record, throw an error message using apex class handler trigger in Salesforce
  • Write a trigger on lead to prevent duplicate records based on lead email Whenever the records is inserted Or updated using apex class handler trigger in Salesforce
  • Apex Trigger on Contact to Create Account Automatically and map to related account Id to Contact Whenever New Contact is Created in Salesforce

 

FAQ (Frequently Asked Questions)

How to get metadata from rest API?

You can use the GET operation to retrieve field metadata for specified fields on a specified form as defined in the criteria. The following table lists details about this GET operation. Indicates the list of field ids for which details are required. The API returns the requested data if you provide the criteria.

What is a named credential?

A named credential specifies the URL of a callout endpoint and its required authentication parameters in one definition. Salesforce manages all authentication for Apex callouts that specify a named credential as the callout endpoint so that your code doesn't have to.

Which components can use the rest API metadata?

Once the REST API metadata is created, you can use it in the tRESTRequest component with Jobs and cREST with Routes. In the Basic settings view of the tRESTRequest component, select Repository from the Definition list.

Related Topics | You May Also Like

  • How can we expose Salesforce data as a REST API? | Salesforce Rest API Controller @HttpGet, @HttpPost, @HttpPut, @HttpPatch or @HttpDelete | How We can expose Salesforce data as a REST API using Apex REST Services.How can we expose Salesforce data as a REST API? | Salesforce Rest API Controller @HttpGet, @HttpPost, @HttpPut, @HttpPatch or @HttpDelete | How We can expose Salesforce data as a REST API using Apex REST Services.
  • POST + GET REST API integration example to a real-world production-level setup using Named Credentials and Custom Metadata TypesPOST + GET REST API integration example to a real-world production-level setup using Named Credentials and Custom Metadata Types
  • How to Consume External REST API in Salesforce Using Named Credentials | Understanding Named Credentials in SalesforceHow to Consume External REST API in Salesforce Using Named Credentials | Understanding Named Credentials in Salesforce
  • A complete External REST API integration using POST + GET + PUT + PATCH, and DELETE in Salesforce | Apex Class for External REST Integration in SalesforceA complete External REST API integration using POST + GET + PUT + PATCH, and DELETE in Salesforce | Apex Class for External REST Integration in Salesforce
  • How to Work POSTMAN GET / POST / PUT/ PATCH / DELETE in rest API on Account Object in Salesforce | Handling POST, PUT, PATCH and DELETE Requests Rest API in postman request in SalesforceHow to Work POSTMAN GET / POST / PUT/ PATCH / DELETE in rest API on Account Object in Salesforce | Handling POST, PUT, PATCH and DELETE Requests Rest API in postman request in Salesforce
  • PATCH Method – Check If Contact Exists → UPDATE Else CREATE → Return Updated Values to LWC |  Apex class PATCH Method to Check If Contact Exists and Update Record Otherwise create new record and returning data to LWC componentPATCH Method – Check If Contact Exists → UPDATE Else CREATE → Return Updated Values to LWC | Apex class PATCH Method to Check If Contact Exists and Update Record Otherwise create new record and returning data to LWC component
  • Interview Questions on REST API Integration in Salesforce (with Answers) | REST API Scenario-Based Interview Questions SalesforceInterview Questions on REST API Integration in Salesforce (with Answers) | REST API Scenario-Based Interview Questions Salesforce
  • POST Callout → Hands on example the code of external Rest API working in LWC | Real working example of calling an external REST API from Lightning Web Component (LWC)POST Callout → Hands on example the code of external Rest API working in LWC | Real working example of calling an external REST API from Lightning Web Component (LWC)

👉 Get Complementary →

right side banner -- www.w3webmart.com
 
  
👉 Get Free Course →

📌 Salesforce Administrators

📌 Salesforce Lightning Flow Builder

📌 Salesforce Record Trigger Flow Builder

👉 Get Free Course →

📌 Aura Lightning Framework

📌 Lightning Web Component (LWC)

📌 Rest APIs Integration



Vijay Kumar

Hi, This is Vijay Kumar behind the admin and founder of w3web.net. I am a senior software developer and working in MNC company from more than 8 years. I am great fan of technology, configuration, customization & development. Apart of this, I love to write about Blogging in spare time, Working on Mobile & Web application development, Salesforce lightning, Salesforce LWC and Salesforce Integration development in full time. [Read full bio] | | The Sitemap where you can find all published post on w3web.net

Categories Salesforce Integration, Tutorial Tags Can you retrieve metadata, How to call Named Credentials in Apex, How to deploy named Credentials in Salesforce, How to extract data from rest API?, How to get XML data from rest API, How to pull up metadata, How to retrieve named Credentials in package XML, Named Credentials and Remote Site Settings, Named credentials in integration procedure, Named Credentials Salesforce, Named credentials salesforce tooling api, Tooling api named credential
A complete External REST API integration using POST + GET + PUT + PATCH, and DELETE in Salesforce | Apex Class for External REST Integration in Salesforce
Write apex trigger to update the related Child__c Phone whenever Parent__c Phone is updated in Salesforce

Archives →

Categories →

  • Agentforce (4)
  • Blog (4)
  • More (7)
  • Tutorial (326)
    • Formula Field (1)
    • JQuery (13)
    • Lightning Component (60)
    • React Js (15)
    • Salesforce Integration (41)
    • Salesforce LWC (115)
    • Trigger (57)
    • Validation Rule (9)
    • Visualforce (16)
  • Uncategorized (4)

Global Visitors →

Popular Posts →

  • Create Quote and QuoteLineItem From Opportunity in LWC -- w3web.net How to Create Quote and QuoteLineItem From Opportunity in Lightning Web Component – LWC Salesforce | How to add and delete rows dynamically in lightning web component | How to create multiple records dynamically with custom functionaliy in LWC 4 views per day
  • Do not allow delete Account, if any of related Contact associated with Account in Salesforce | Prevent the deletion of Account which have related contact through apex trigger in Salesforce 3.33 views per day
  • Write Apex Trigger Whenever a Contact is Inserted / Updated / Deleted, We need to Count child Contacts related to each Account Based on MailingCountry Only for these 4 countries (India, USA, England, Japan) Then store the count on Account object. 2.83 views per day
  • Salesforce sends Contact data to an External CRM System using POST REST API, External system returns a Customer Reference ID, salesforce stores that ID in a custom field, Whenever Contact Phone or Email is updated, Salesforce notifies the external sy... 2.50 views per day
  • display google map markers in salesforce lwc -- w3web.net A lightning:map example how to use google map on lightning web page and adjust/fix appearance of lightning-map in Salesforce Lightning Web Component LWC | display google map using lightning-map element in salesforce lightning web component LWC 2 views per day
  • tree grid dynamic expand collapse in lwc -- w3web.net Create dynamic tree grid with expande / collapse selected rows and select checkbox for the entire row select/deselect in Salesforce lightning web component LWC | how to create tree grid with expanded/collapsed section for the entire row marked as se... 1.83 views per day
  • update contact account name Null whenever account record is updated -- w3web.net Create a Apex Trigger on Account to Update the Associated Contact Account Name Null Whenever Account Record is Updated in Salesforce | trigger to update account name of contact whenever account record is updated 1.83 views per day
  • Split and display multiple picklist value in lwc -- w3web.net How to split values from multiple picklist to dropdown value in salesforce LWC | Split and display multiple picklist value into single dropdown value in LWC | How to Split a String into an Array in LWC JS | Split string with picklist value in lwc JS... 1.50 views per day

Get Free Courses →

right side banner -- www.surfmyindia.com
right side banner -- overstockphoto.blogspot.com

Join Our Newsletter →

Loading
right side banner -- www.lifedreamguide.com

Recent Posts →

  • Create a hand-on example as pass input value from parent to child component through PubSub Model LWC in Salesforce
  • How to pass input value from parent to child component through LMS method in Salesforce | Hand-on example as pass input value from parent to child component through Lightning Message Service (LMS) in Salesforce
  • Apex Trigger Whenever Case is: Inserted/Updated/Deleted/Undeleted We need to count Cases based on Priority: High, Medium, Low And update counts on Account
right side banner -- www.w3webmart.com


header banner -- www.overstockphoto.blogspot.com
  • Follow Me →
➡ : Facebook
➡ : Twitter
➡ : Linkedin
➡ : Instagram
➡ : Reddit
➡ : Forcetalks
➡ : Pinterest
➡ : Github
➡ : Medium
➡ : Tumblr
➡ : Telegram
 

🧩 Get Free Courses

👉 Get Complementary →

right side banner -- www.w3webmart.com
header banner -- www.overstockphoto.blogspot.com

Recent Posts →

  • Create a hand-on example as pass input value from parent to child component through PubSub Model LWC in Salesforce
  • How to pass input value from parent to child component through LMS method in Salesforce | Hand-on example as pass input value from parent to child component through Lightning Message Service (LMS) in Salesforce
  • Apex Trigger Whenever Case is: Inserted/Updated/Deleted/Undeleted We need to count Cases based on Priority: High, Medium, Low And update counts on Account
  • Apex Trigger Whenever Opportunity is: Inserted/Updated/Deleted/Undeleted We need to: Calculate total Amount of all Opportunities Where StageName = ‘Closed Won’ And update it on Account
  • Apex Trigger Whenever Opportunity is Inserted/Updated/Deleted/Undeleted We need to count how many Opportunities have: StageName = ‘Closed Won’ And update that count on Account.
  • Apex Trigger Whenever Contact is Inserted/Updated/Deleted/Undeleted We need to count Contacts based on LeadSource and update Account, LeadSource values: Web, Phone Inquiry, Partner Referral, Advertisement
header banner -- www.lifedreamguide.com

Popular Posts →

  • Write Apex Trigger Whenever a Contact is Inserted / Updated / Deleted, We need to Count child Contacts related to each Account Based on MailingCountry Only for these 4 countries (India, USA, England, Japan) Then store the count on Account object. 7 views
  • tree grid dynamic expand collapse in lwc -- w3web.net Create dynamic tree grid with expande / collapse selected rows and select checkbox for the entire row select/deselect in Salesforce lightning web component LWC | how to create tree grid with expanded/collapsed section for the entire row marked as select / deselect with checkbox in Salesforce LWC 4 views
  • use the lightning formatted fields in lwc - w3web.net How to use the lightning-formatted-email, lightning-formatted-number, lightning-formatted-phone, lightning-formatted-date-time, lightning-formatted-text, lightning-formatted-address, lightning-formatted-url in Salesforce lightning web component (LWC) | how to display of lightning-formatted input fields and there values in Salesforce LWC (Lightning Web Component) 3 views
  • Example with a Named Credential and custom metadata setup of Rest API POST + GET + PUT + PATCH, and DELETE in Salesforce | Named Credentials POST + GET REST API integration example to a real-world production-level setup using Named Credentials and Custom Metadata Types. 3 views
  • Surfmyindia |
  • Lifedreamguide |
  • w3webmart |
  • Overstockphoto |
  • News24classictimes |
  • TechW3web |
  • Refund Policy |
  • Delivery Policy |
  • Privacy Policy |
  • Term & Conditions
© 2026 w3web.net • Built with GeneratePress

Chat Now