3 thoughts on “Create/Update Custom Metadata Using Apex

  1. Hi Amit,

    I have a question from step 4 onward,
    I mean do we need to execute the code in an isolated way in dev console.
    I am a bit confused.

    Regards,
    Siddhartha

    1. Hi Siddhartha,

      The Code that I am using in Anonymous Window is just for testing Purpose. You can call the method from Apex Class As well. But the Parameters must be of the same DataType because this code is for generic metadata that means you can use this code for creating any metadata records.

Leave a Reply

Your email address will not be published. Required fields are marked *