web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

When publishing it is not pointing to the correct Tennant ID

(0) ShareShare
ReportReport
Posted on by 607

Hi All,

I quite new to D 365 BC. Just wanted to how to publish your cutumization of an app to a particular Tennant ID of Sandbox.

Thanks in Advance!

I have the same question (0)
  • AXBOY Profile Picture
    607 on at
    RE: When publishing it is not pointing to the correct Tennant ID

    Thank you all! Worked with the SUPER permission.

  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,025 Super User 2025 Season 2 on at
    RE: When publishing it is not pointing to the correct Tennant ID

    Check your permission on the sandbox. You need to have SUPER permission to all company to push the extension.

  • AXBOY Profile Picture
    607 on at
    RE: When publishing it is not pointing to the correct Tennant ID

    I tried givng the TenantId as the value for the Parameter Tenant, But its displaying the following error :

    pastedimage1575440643552v1.png

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: When publishing it is not pointing to the correct Tennant ID

    You can write tenant: "YOURTENANTID" and you can find that ID in the url as suggested by Mohana) or by clicking on the ? button in the top right corner and then scroll at the bottom of the help page).

  • Suggested answer
    Mohana Yadav Profile Picture
    60,606 Super User 2025 Season 2 on at
    RE: When publishing it is not pointing to the correct Tennant ID

    tenant id will be available in your BC url

    businesscentral.dynamics.com/<Tenant id>/

  • AXBOY Profile Picture
    607 on at
    RE: When publishing it is not pointing to the correct Tennant ID

    @StefanoDemiliani, @TeddyHeryantto ,i dont know the AAD domain name that i should use a value in the Tenant parameter, but i do have the Tesnant BC open in my browser have the Tenant ID with me, is there any way to find out the tenant AAD domain name with the Tenant ID or through the Tenant D365 BC which is open in my browser?

    [quote user="Stefano Demiliani"]

    In launch.json file you can use the "tenant" parameter to point to the right customer tenant. For a cloud server, this parameter must contain a tenant AAD domain name, for example: mycustomer.onmicrosoft.com

    To point to the right sandbox enviroment (if you have more than one of this) you can use the sandboxName parameter (always in launch.json file). Example:

    "sandboxName": "YourSandboxName"

    [/quote]

    Please help!

    Thanks in Advance.

  • Suggested answer
    Mohana Yadav Profile Picture
    60,606 Super User 2025 Season 2 on at
    RE: When publishing it is not pointing to the correct Tennant ID

    Previous credentials will be cached so you have to run clear credentials cache as well.

  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,025 Super User 2025 Season 2 on at
    RE: When publishing it is not pointing to the correct Tennant ID

    You can specify it in your launch.json file.

    {

       "version": "0.2.0",

       "configurations": [

           {

               "type": "al",

               "request": "launch",

               "name": "Microsoft cloud sandbox",

               "tenant": "",

               "sandboxName": "Sandbox",

               "startupObjectId": 26

               "breakOnError": true,

               "launchBrowser": true,

               "enableLongRunningSqlStatements": true,

               "enableSqlInformationDebugger": true,

           }

       ]

    }

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: When publishing it is not pointing to the correct Tennant ID

    In launch.json file you can use the "tenant" parameter to point to the right customer tenant. For a cloud server, this parameter must contain a tenant AAD domain name, for example: mycustomer.onmicrosoft.com

    To point to the right sandbox enviroment (if you have more than one of this) you can use the sandboxName parameter (always in launch.json file). Example:

    "sandboxName": "YourSandboxName"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,869 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,484

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,242

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans