You need to sign in to do that
Don't have an account?
Vishal Ranjan 14
DML operation Update not allowed
Hi All, I am getting error "DML operation Update not allowed on" while updating custom metadata type record through my apex class. Please let me know if we can update custom metadata type records or not?
Please check if your SOQL queries Id field before you make dml operation
please explain in more detail about your approach.
You can not able to update the custom metadata type in apex .. If you want to update the custom metadata type you need to use Metadata API
Refer this link
https://ashwanisoni.wordpress.com/2017/05/02/create-or-update-custom-metadata-type-via-apex-code-salesforce-summer-17/
i..
This is useful to create a new record and deploy same.
But, as per my requirement I need to udpate a existing custom metadata type record. Do you have code for that?