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 71,688 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,063 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,302 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans