# AppSourceCop Error AS0084
The ID range assigned to the extension must be within the allowed range
## Description
The ID range assigned to the extension must be within the range allowed for AppSource applications.
## Remarks
This rule validates that the ID range specified in the app.json of your extension is contained within the range allowed for AppSource application.
For more information about the object ID ranges in Business Central, see Object ranges in Dynamics 365 Business Central<../devenv-object-ranges>.
For more information about the properties in the app.json file, see ../devenv-json-files.
## How to fix this diagnostic?
If you're targeting the AppSource marketplace, you need to update the ID range in your app.json file with the one that Microsoft provided you with.
> NOTE
> If you're targeting the AppSource marketplace and don't have an ID range assigned, follow the steps defined in Get started with building apps<../readiness/get-started>.
If you aren't targeting the AppSource marketplace, you can suppress this rule using ../devenv-using-code-analysis-tool-with-rule-set.
## Code example triggering the rule
### The ID range is outside the range allowed for AppSource applications
The app.json file of the extension:
```json
{
   [...]
   "idRanges": [
    {
      "from": 50100,
      "to": 50149
    }
    [...]
  ]
}
```
The ID range specified isn't contained in the range allowed for AppSource applications.
### The ID range isn't specified
The app.json file of the extension:
```json
{
  [...]
}
```
If the ID range is not specified, the default ID range is used. As the default ID range spans outside the allowed ID range for AppSource applications, a diagnostic will be reported.
## Code example not triggering the rule
The app.json file of the extension:
```json
{
   [...]
   "idRanges": [
    {
      "from": 1000000,
      "to": 1000100
    }
    [...]
  ]
}
```
The ID range specified is included in the range allowed for AppSource applications.
## Related information
AppSourceCop Analyzer<appsourcecop>
Get Started with AL<../devenv-get-started>
Developing Extensions<../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/appsourcecop-as0084, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0084/
