0

I'm using FSL Dispatcher Permissions and FSL Dispatcher License in test class for a scenario to cover code in my apex class. It worked fine when running the test class. But when doing a package version create by including them in apexTestAccess object in sfdx-project json, it is failing because they are created in the org after installing FSL package. So, is there any way to create package version successfully with those permissions included.

1 Answer 1

1

If your package is not inherently dependent on FLS you should check out the concept of unpackaged metadata.

This allows you to have metadata in a separate package directory that the package's unit tests rely on without then needing the metadata to be packaged.

1
  • Thank you so much! That worked. Dec 3, 2023 at 19:17

You must log in to answer this question.

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