Editar

Compartilhar via


PerTenantExtensionCop Error PTE0009

This app.json property must not be used for per-tenant extensions.

Description

The properties 'helpBaseUrl' and 'supportedLocales' are reserved for translation apps.

This rule validates that the manifest of your extension (app.json) does not specify the properties helpBaseUrl and supportedLocales. For more information, see JSON files and Working with Translation Files.

How to fix this diagnostic?

You must remove the properties helpBaseUrl and supportedLocales from the manifest of your extension (app.json).

Code example triggering the rule

The following manifest specifies the properties helpBaseUrl and supportedLocales and is then not valid.

{
    "appId": "<some-guid>",
    "name": "MyApp",
    "publisher": "MyPublisher",
    "version": "1.0.0.0",
    "helpBaseUrl": "<some-url>",
    "supportedLocales": [ "en-US" ]
}

Code example not triggering the rule

The following manifest does not specifies the properties helpBaseUrl and supportLocales and is valid.

{
    "appId": "<some-guid>",
    "name": "MyApp",
    "publisher": "MyPublisher",
    "version": "1.0.0.0"
}

PerTenantExtensionCop Analyzer
Get Started with AL
Developing Extensions