Skip to main content
added 173 characters in body
Source Link
nverm
  • 199
  • 1
  • 2
  • 10

I want to write a trigger on a custom object (Template__c) such that it invokes the creation or update of Custom metadata type records. Since the fields are not writeable, how do I achieve this?

I tried using the "CustomMetadataValue". I can see the values assigned in Debug when I run in Anonymous window but the values do not get created in actual.

I want to write a trigger on a custom object such that it invokes the creation or update of Custom metadata type records. Since the fields are not writeable, how do I achieve this?

I want to write a trigger on a custom object (Template__c) such that it invokes the creation or update of Custom metadata type records. Since the fields are not writeable, how do I achieve this?

I tried using the "CustomMetadataValue". I can see the values assigned in Debug when I run in Anonymous window but the values do not get created in actual.

edited title
Link
nverm
  • 199
  • 1
  • 2
  • 10

How do I insert records in Custom Metadata Type via codethrough Apex?

Source Link
nverm
  • 199
  • 1
  • 2
  • 10

How do I insert records in Custom Metadata Type via code?

I want to write a trigger on a custom object such that it invokes the creation or update of Custom metadata type records. Since the fields are not writeable, how do I achieve this?