When using custom metadata types, be aware of these special behaviors and limitations.
Updating Types and Records:
You can update protected types and records in an installed managed package programmatically if your Apex code is in the same namespace as either the records or their type. To modify records from Apex, you must use the Metadata package in Apex.
For more information please check with below help documents.
When using custom metadata types, be aware of these special behaviors and limitations.
Updating Types and Records:
You can update protected types and records in an installed managed package programmatically if your Apex code is in the same namespace as either the records or their type.
To modify records from Apex, you must use the Metadata package in Apex.
For more information please check with below help documents.
- https://help.salesforce.com/articleView?id=custommetadatatypes_limitations.htm&type=5
- https://help.salesforce.com/articleView?id=custommetadatatypes_metadata_api.htm&type=5
Hope this helps.Thanks,
Nagendra