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, 9 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

    Mastering Salesforce Data Migration: A Complete Guide

    Blog in Salesforce Consultant

    Salesforce is a leading CRM platform that helps businesses manage their customer relationships efficiently. However, moving data into Salesforce can be tricky. This guide will…

    CRM Migration, Customer Records, Data Consistency, Data Errors, Data Management
    Nishant Aug 1, 2024
    737  Views

    Top Reasons to Learn Salesforce

    Blog in Salesforce Certifications

    Salesforce is the number one CRM (customer relationship management) and cloud-based platform that enables companies to manage, organize and track their internal information effectively and…

    Salesforce App Builder, Salesforce Certification, Salesforce Commerce Cloud, Salesforce Course, Salesforce Forums
    Simplilearn Jun 21, 2019
    5,098  Views

    Salesforce Experience Cloud: A Comprehensive Guide

    Blog in Salesforce, Salesforce Cloud Platform

    In order to maintain a competitive advantage, businesses must continually adapt to the ever-changing needs of their customers. To meet these customer demands and stay…

    Chatter, Community Cloud, Customer Behavior, Customer Experience, Customer Experiences
    Emorphis Dec 16, 2022
    1,717  Views

    Popular Salesforce Videos

    Salesforce Service Cloud: Upload Files During a Live Chat

    Salesforce Service Cloud: Upload Files During a Live Chat

    Video in Salesforce Cloud Platform

    Chatbots are incredible automation tools that can streamline a variety of business processes. Still, regardless of how much they can accomplish, there are situations where…

    Salesforce Training, Salesforce Tutorial, Salesforce Service Cloud, Salesforce Video, Salesforce Learning
    Rupal Kakkar Dec 29, 2021
    2,838  Views
    Introduction to Salesforce and Data Modeling | Quick Start | Episode 1

    Introduction to Salesforce and Data Modeling | Quick Start | Episode 1

    Video in Data, Salesforce Training

    In this video, you will get started with Salesforce Development and build Salesforce Applications without writing code. Watch this video and learn. 00:00:00 - Start…

    Salesforce Tutorial, Salesforce Development, salesforce, Salesforce Apps, Cloud Computing
    Prafull Jul 13, 2021
    2,114  Views
    Salesforce Tutorial - Creating Custom Object

    Salesforce Tutorial - Creating Custom Object

    Video in Salesforce Implementation

    Many times, New Salesforce Developers don’t understand from where to start it. In this video, I have shown the way exactly to create a Custom…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Consulting, Salesforce Video
    Sam J May 18, 2020
    2,758  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.