Toggle Side Panel

  • Blogs
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Blogs
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to Update Record in Custom metadata type through Salesforce Apex Class?

    Tagged: Custom Metadata Type, Metadata API, Salesforce Apex Class

    • Salesforce® Discussions

      How to Update Record in Custom metadata type through Salesforce Apex Class?

      Posted by Piyush on July 8, 2016 at 10:25 AM

      Hi All,

      How to update record in Custom metadata type through Apex class?

      Esteve replied 7 years, 8 months ago 4 Members · 3 Replies
      • Custom Metadata Type
      • Metadata API
      • Salesforce Apex Class
    • 3 Replies
    • Jogender

      Member
      July 8, 2016 at 10:46 AM

      Hello Piyush,

      You can’t update protected types and records in custom metadata programmatically. You can modify protected types and records only by performing a package upgrade.

      You can’t update public types and records by using Apex directly. To modify records from Apex, you must make calls to the Metadata API.

    • [adinserter block='9']
    • veda hebbar

      Member
      March 15, 2018 at 12:49 PM

      Hi,

      How to use Metadata API to update "Custom Metadata type" records.

      Thanks,

      Vedashri

    • Esteve

      Member
      January 3, 2019 at 1:26 PM

      Yes you can:

      • https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_Metadata_CustomMetadata.htm
      • https://salesforce.stackexchange.com/questions/192018/how-do-i-update-a-namespaced-custom-metadata-type-record-after-making-a-package

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    Popular Salesforce Blogs

    How Can Integrating Your Business Processes with Salesforce Deliver Great User Experience

    Blog in Others

    There have been plenty of celebrities that have used this famous saying to try to get preferential treatment at a restaurant, to get VIP treatment…

    AppExchange, Sales Cloud, Salesforce APIs, Salesforce Automation, Salesforce Cloud
    KeyNode Sep 3, 2019
    8,697  Views
    native vsnon-native salesforce apps

    Native vs Non-native Salesforce App: Which One is Better?

    Blog in Salesforce Products, Salesforce Security

    Native Salesforce Apps Native Salesforce apps are those apps that are developed on the Force.com development platform without any external server or code. In other…

    Appexchange App Development, AppExchange Apps, CRM, Force.com Development, Native App
    Algoworks Apr 17, 2020
    2,672  Views

    Salesforce CPQ – Top 9 Benefits – Prepare Accurate Quotes in Moments not Months!

    Blog in Salesforce Einstein, Salesforce Implementation

    Configure Price Quote (CPQ) is a salesforce cloud toolkit available in Salesforce that allows your business to provide your customer with accurate sales quotes and…

    Cloud Toolkit, Customer Experience, Salesforce Consulting, Salesforce CPQ, Salesforce Einstein AI
    LevelShift (formerly DemandBlue) Nov 20, 2018
    6,002  Views

    Popular Salesforce Videos

    Driving Sales Productivity and Motivations from Your Salesforce Data

    Video in Sales

    Meet OneUp Sales, the revolutionary sales motivation platform built for modern sales teams. By leveraging data extracted from systems you already use, OneUp powers lively…

    Salesforce Video, sales, Salesforce Learning, Data, Sales Teams
    Ian Feb 17, 2021
    2,292  Views
    Unleash the Power of Compare Tables | Salesforce Video

    Unleash the Power of Compare Tables | Salesforce Video

    Video in Others, Salesforce Products

    In this video, you will learn how to use compare tables to calculate complex calculations quickly, which you can then use to visualize your data.…

    Salesforce Training, salesforce, Salesforce Video, Salesforce Learning, Compare Tables
    Pooja Jun 19, 2020
    2,070  Views
    Set Up a Microsoft Exchange Service Account to Sync with Salesforce (Using Command Shell)

    Set Up a Microsoft Exchange Service Account to Sync with Salesforce (Using Command Shell)

    Video in Salesforce Integration

    You can sync sales reps’ contacts and events between your Microsoft Exchange-based email and Salesforce using the Salesforce feature Lightning Sync. If you’re an Exchange…

    Salesforce Integration, Salesforce Lightning Experience, Salesforce Microsoft Integration, Microsoft Exchange Service Account Sync with Salesforce, Email Handling
    Jogender Feb 20, 2018
    5,085  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.