1
  • My company owns a managed package with a feature licensed in the FMA.
  • Inside the managed package we have a button the user presses to flip a protected metadata setting to enable the Objects/Fields associated with the feature. The button only works if the license has been granted in the FMA.
  • We have unpackaged, implementation-specific metadata I'd like to migrate to unlocked packages.
  • I've been able to make the unlocked package dependent on our managed package.
  • We've added code to our LMO/FMA to automatically grant the license to specific scratch org configurations, which I've added as the "definitionFile" property in our package definition.

The problem: During the unlocked package version creation process, there's no way to click the button in the UI and create our protected metadata entry to enable the licensed objects, so the "Verifying Metadata" step fails when it hits a reference to them.

(I know about org-dependent unlocked packages, but would prefer not to use them, as enforcing dependency is important to our use case)

3

0

You must log in to answer this question.

Browse other questions tagged .