Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

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

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

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 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"
            }
        ]
    }

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans