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...
Suggested Answer

How to get sandbox connection settings for programming AL in visual studio code

(0) ShareShare
ReportReport
Posted on by 5

I want to setup to program AL in visualstudio code. But I am unable to download symbols. How can I get the correct server name for the launch.json?

This is my launch.json:

{
    "version": "0.2.0",
    "configurations": [        

        {
            "name": "Your own server",
            "request": "launch",
            "type": "al",    
            "server": "https://businesscentral.dynamics.com/48bf5e21-6260-4f21-8d42-28c4c0c7a9df/sandox",        
            "environmentType": "OnPrem",            
            "serverInstance": "BC",
            "authentication": "UserPassword",
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "breakOnError": "All",
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true,
            "tenant": "default"
        }
    ]
}
Please help.
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: How to get sandbox connection settings for programming AL in visual studio code

    Hi You can use as per below, just change the parameters

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Your own server",
                "request": "launch",
                "type": "al",
                "environmentType":"Sandbox",
                "server": "http://bccontainer/",
                "serverInstance": "BC",
                "authentication":"Windows",
                "startupObjectId": 22,
                "startupObjectType": "Page",
                "breakOnError": true,
                "port": 7049,
                "launchBrowser": true,
                "enableLongRunningSqlStatements": true,
                "enableSqlInformationDebugger": true,
                "tenant": "default"
            }
        ]
    }
  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at
    RE: How to get sandbox connection settings for programming AL in visual studio code

    Hi, It looks like you are using the SaaS version.

    for SaaS: the "tenant" and "environmentName" are important.

    For example,

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Microsoft cloud sandbox",
                "request": "launch",
                "type": "al",
                "tenant": "d8f36038-1f93-4543-affc-5dc92b6ee871",
                "environmentType": "Sandbox",
                "environmentName": "Sandbox213",
                "schemaUpdateMode": "ForceSync",
                "startupObjectType": "Page",
                "breakOnError": "All",
                "launchBrowser": true,
                "enableLongRunningSqlStatements": true,
                "enableSqlInformationDebugger": true
            }
        ]
    }
    More details:

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-json-files#Launchjson

    Hope this helps.

    Thanks.

    ZHU

  • How to get connection settings sandbox Profile Picture
    5 on at
    RE: How to get sandbox connection settings for programming AL in visual studio code

    Thank you very much. This helped me get on my way.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans