Redigera

Dela via


AppSourceCop Error AS0093

Entitlements cannot be defined in an extension.

Description

Entitlements cannot be defined in an extension because their use is restricted to Microsoft only.

Remarks

This rule applies only to versions earlier than Business Central 2022 release wave 2.

Example of code triggering the rule

entitlement MyLicense
{
    Type = PerUserServicePlan;
    Id = 'planid';
}

How to fix this diagnostic?

Remove the offending Entitlement object(s) from your extension and use one of the built-in entitlements, for more information see Entitlements and Permissions Sets Overview provided in Business Central. It is currently not possible to create user-defined entitlements.

Entitlement Object AppSourceCop Analyzer
Get Started with AL
Developing Extensions