0

We are developing two packages: baseline package and package extension. Baseline package has CustomMetadata__mdt custom metadata and package extension contains additional field to this custom metadata.

When 'skipvalidation' parameter is used, it is possible to build and use package extension which contains additional fields on the custom metadata included in the baseline package.

However, when I try to create a validated version to release a package extension version, I receive an error "You can't create custom fields on installed managed custom metadata types.".

Why it fails only when I try to create a validated version and works just fine when I build and install two beta versions of the package?

What are the options to overcome this problem?

1 Answer 1

0

Looks like there is no easy solution to this. It is possible to open Salesforce support case or Idea on IdeaExchange for Salesforce to fix it.

As a workaround, it is possible to introduce a CustomMetadataExtension__mdt with relationship to CustomMetadata__mdt to contain additional fields related to CustomMetadata__mdt

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .