Activity Forums Salesforce® Discussions How to Update Record in Custom metadata type through Salesforce Apex Class? Reply To: How to Update Record in Custom metadata type through Salesforce Apex Class?

  • 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.