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

    Salesforce Agentforce for Nonprofits

    Blog in Salesforce Products

    Nonprofits are constantly faced with the challenge of meeting growing demands with limited resources and inefficient processes. When your constituents need help or information, you…

    Agentforce, Ai, AI Tool, Analyze, Automate
    DB Nov 11, 2025
    290  Views
    Salesforce Nonprofit Success Pack

    Salesforce Nonprofit Success Pack Implementation Guide

    Blog in Salesforce Implementation

    If you’re reading this, you’ve likely decided to begin using Salesforce for your nonprofit organization. Well, have no fear, because you’ve made a great decision!…

    Campaign Members, Campaigns, Case Management, Connector, Contacts
    DB May 17, 2023
    1,348  Views
    Salesforce Pardot

    How Salesforce Pardot Derives Your Sales Engagement?

    Blog in Salesforce Products

    Sales are a crucial aspect of every business, and now with the advent of social media and other online platforms, you not only have to…

    Automated Email Responses, Best-performing Products, Brand Recognition, Business, Campaign Management
    Melonleaf Feb 18, 2022
    4,151  Views

    Popular Salesforce Videos

    Salesforce — How To Improve Customer Service for Small Businesses

    Salesforce — How To Improve Customer Service for Small Businesses

    Video in Salesforce Stories

    How can a small business improve its customer service? More than ever before, supporting customers is key to a small business's survival — so give…

    salesforce, Salesforce Video, Customers, customer service, Salesforce Learning
    Nauman Sep 15, 2020
    2,430  Views
    Customize Salesforce Lightning Home page

    Customize Salesforce Lightning Home page

    Video in Lightning

    In this video Signiforce shows : How to customize the Salesforce Lightning Home page. Update an existing Salesforce lightning home page or create a new…

    Salesforce Training, Salesforce Tutorial, Salesforce Lightning, salesforce, Lightning Components
    Mayra Dec 20, 2022
    1,705  Views
    Salesforce Work.com New Features

    Salesforce Work.com New Features

    Video in Salesforce Stories, Salesforce Products

    Work.com includes new solutions to accelerate the private and public sector's answer to the COVID-19 pandemic, ranging from contact tracing and emergency response management to…

    Salesforce Training, Salesforce Products, salesforce, Salesforce Video, Salesforce Learning
    Algoworks Nov 17, 2020
    1,689  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.