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

    All You Need to Know About Marketing & Commerce Cloud in Salesforce

    Blog in Others

    Marketing & Commerce Cloud in Salesforce Welcome back everyone; since you know about the sales and service cloud you guys must be curious about the…

    Artificial Intelligence, Automation, Behavior, Campaigns, CLOUD
    Mohit Kumar May 10, 2023
    1,851  Views

    Get Rid of Undocumented Code With the IcApexDoc Tool

    Blog in Salesforce Tools

    Documenting code is super important for software development. It helps developers understand and work with the code better. Salesforce projects are no exception. Why Do…

    Apex Types, ApexDoc Plugins, Automated Generation, Available Object Fields, Class Constructor
    ENWAY Sep 5, 2023
    1,510  Views
    Customer Empathy

    Customer Empathy Within Salesforce | Can Artificial Intelligence Help?

    Blog in AI and ML, Salesforce Einstein

    Customer empathy costs nothing, but it means a great deal for every business. In 2020, Salesforce surveyed 15600 customers and revealed that the customers want trust,…

    Artificial Intelligence, Be your Customer, Business, Business Needs, Conflict Prevention
    Cloudideas Apr 29, 2021
    5,873  Views

    Popular Salesforce Videos

    What are Cross Object Formula fields in Salesforce?

    What are Cross Object Formula fields in Salesforce?

    Video in Salesforce Development

    In this video, Cross Object Formula Fields in Salesforce is explained by dividing this topic into 4 basic points, which are: 1. What is Cross…

    Salesforce Field Objects, How To Learn Salesforce Development, Salesforce Learning Steps For Beginners, Easy Way To Learn Salesforce, Best Salesforce Tutorials
    Portia Jan 17, 2019
    2,988  Views
    Salesforce Tutorial Video | Salesforce Walkthroughs

    Salesforce Tutorial Video | Salesforce Walkthroughs

    Video in Salesforce Training, Trailhead

    Salesforce Walkthroughs is a new feature for Summer '20 which allows myTrailhead customers to create a series of up to 10 connected prompts to direct…

    Salesforce Training, salesforce, Trailhead, Salesforce Video, Salesforce Learning
    Stimulus Consulting Jul 24, 2020
    2,159  Views
    Introduction to Report and Dashboard in Salesforce | Salesforce Training Videos

    Introduction to Report and Dashboard in Salesforce | Salesforce Training Videos

    Video in Salesforce Stories, Salesforce Training

    A report is a list of records that meet the criteria you define. It's displayed in Salesforce in rows and columns, and can be filtered,…

    Salesforce Training, Salesforce Reports, Salesforce Training Videos, salesforce, Salesforce Dashboards
    Nauman Jun 1, 2020
    3,302  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.