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

Announcements

No record found.

News and Announcements icon
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 625

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!

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    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"

  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at

    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
    Mohana Yadav Profile Picture
    61,252 Super User 2026 Season 2 on at

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

  • AXBOY Profile Picture
    625 on at

    @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
    61,252 Super User 2026 Season 2 on at

    tenant id will be available in your BC url

    businesscentral.dynamics.com/<Tenant id>/

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    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).

  • AXBOY Profile Picture
    625 on at

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

    pastedimage1575440643552v1.png

  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at

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

  • AXBOY Profile Picture
    625 on at

    Thank you all! Worked with the SUPER permission.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 768 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 541 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 324 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans