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 6 years, 11 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.

    • 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

    Sender Authentication Package (SAP) in Marketing Cloud: How to Use It to Improve Brand Awareness

    Blog in Others

    To increase the chances of your emails reaching their intended recipients, they should be authenticated, not just validated. Authentication is serious to Google and other…

    automation tools, Bulk Email, Business Growth, Business Intelligence, Business Intelligence Tools
    Twistellar Sep 3, 2024
    447  Views

    Integrating and Automating B2B Sales Workflows with Custom Salesforce Integrations

    Blog in Salesforce

    When you think about the complex world of B2B sales, it’s clear that there are a lot of moving parts. Sales teams juggle multiple tasks—from…

    Amit Kumar Jul 22, 2024
    104  Views

    Understanding Custom Metadata Types In Salesforce

    Blog in Salesforce

    Understanding Custom Metadata Types in Salesforce Custom Metadata Types in Salesforce are a powerful tool for storing and retrieving small amounts of configuration data within…

    Custom Metadata Type, Salesforce Code, salesforcedeveloper
    Cloudy Aug 1, 2025
    222  Views

    Popular Salesforce Videos

    4 Benefits of Salesforce Vlocity Communications Clouds

    4 Benefits of Salesforce Vlocity Communications Clouds

    Video in Salesforce Cloud Platform, Salesforce Training

    Vlocity Communications effortlessly collaborate with Salesforce Service Cloud to design a solution to garner personalized and uninterrupted experience for customers throughout their channels. This not…

    Salesforce Training, Salesforce Service Cloud, salesforce, Salesforce Video, Customers
    Cyntexa May 9, 2022
    2,588  Views
    Salesforce training video for beginners

    Salesforce training video for beginners

    Video in Salesforce Training

    Salesforce is an innovative tool that can be very powerful when used properly. That’s why it’s important to find effective and trustworthy ways to learn…

    Salesforce Sales Cloud, Salesforce Service Cloud, Salesforce Marketing Cloud, Salesforce Accounts Management, Activity Management
    deepti jain Dec 6, 2018
    2,681  Views
    Secrets and Tips on Marketing Automation in Marketing Cloud | Marketing Cloud Webinar by Vimera

    Secrets and Tips on Marketing Automation in Marketing Cloud | Marketing Cloud Webinar by Vimera

    Video in Marketing

    Hi there! Welcome to the recording of our Marketing Cloud Webinar from September 30, 2024! At Vimera (vimera.io), we’re proud to be a trusted Certified…

    salesforce, Salesforce Marketing Cloud, Salesforce Consulting, Marketing Cloud, Email Marketing
    Vimera | Andersen Sep 5, 2025
    58  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

    © 2025 - 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.