Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • 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
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • 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
    • Marketplace
    • Advertise With Us
    • 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 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.

    • 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

    application solution

    Popular Salesforce Blogs

    Top 150+ Salesforce Interview Questions

    Blog in Salesforce Training, Salesforce Tutorial

    Top 150+ Salesforce interview questions and answers with detailed explanation Salesforce Interview Questions Part 1 1. What is Cloud Computing? Answer: Cloud computing is defined…

    Approval Process, Automation, Business Process, Cisco WebEx, Cloud Computing
    Ashfaq Aug 17, 2020
    20,505  Views

    Salesforce Event Management: Tips & Best Practices

    Blog in Others

    In a recent chat, our Team Lead and Salesforce Architect, Evgeniy Sukach (Evgeniy), shared his insights with the Routine Automation (RA) team on harnessing Salesforce…

    Digital Events, Event Automation, Event Automation Tools, Event Communication, Event Coordination
    Routine Automation Jun 6, 2024
    739  Views
    Permission Set Salesfore

    Assign Permission Set at the User Creation Made Simple: What You Need to Know | Salesforce Guide

    Blog in Salesforce

    Step 1: Create a Permission Set Step 2: Create a Record- Triggered Flow to Assign Permission Set at the time of User Creation Don't forget…

    API Name, Creating Formulas, Element, Flow, Flow Variable
    SF Dec 5, 2022
    2,968  Views

    Popular Salesforce Videos

    How to use Cauzali in Salesforce Service/sales cloud and all of Salesforce industry clouds. Add functionality to your users with Cauzali

    How to use Cauzali in Salesforce Service/sales cloud and all of Salesforce industry clouds. Add functionality to your users with Cauzali

    Video in Coding and Scripting, Salesforce Cloud Platform

    With a maximum price of $6.000 a year for your org. You and your colleague can make all the solutions you want including Community solutions.…

    salesforce, Salesforce Cloud Platform, Salesforce Industry, Salesforce Video, Sales Cloud
    Tom Bo May 14, 2020
    1,539  Views
    What is Salesforce Integration? | Saleforce Integration Explained

    What is Salesforce Integration? | Saleforce Integration Explained

    Video in Others

    Learn how to seamlessly connect different tools and data sources with your Salesforce platform. It's all about making informed decisions and gaining a competitive edge!…

    salesforce, Salesforce VIdeos, salesforceintegration, salesforcepartner, #livewebinar
    Cyntexa Sep 20, 2023
    1,041  Views
    What is Dreamforce? | Salesforce Explained

    What is Dreamforce? | Salesforce Explained

    Video in Salesforce Stories

    Dreamforce has been coined “the world’s largest tech conference” and is a massive streaming moment on Salesforce+, but what actually takes place at this iconic…

    Salesforce Training, Salesforce Tutorial, dreamforce, salesforce, Salesforce Learning
    Nauman Aug 30, 2022
    1,763  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®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.