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

EnvironmentName and EnvironmentType in launch.json

(0) ShareShare
ReportReport
Posted on by 408

I have noticed that while doing development in Visual Studio code for Business Central (runtime 6.0 for platform 17) we now need to write environmentType and environmentName in launch.json. Environment Type can be "OnPrem", "Production" and "Sandbox". Earlier we mention Sandboxname only. But now we can pick Environment Type as Production as well.

Does anybody know why its needed and what is its purpose?

bcit.PNG

I have the same question (0)
  • Verified answer
    Bharatesh J R Profile Picture
    95 on at
    RE: EnvironmentName and EnvironmentType in launch.json

    Hi Bilal,

         The EnvironmentType  Specifies which environment to use to connect to Business Central. There are three types Onprem, Sandbox, Production.

         The EnvironmentName Specifies which production, or sandbox environment to use.

         The EnvironmentType and EnvironmentName are used to connect to business central and publish the app based on environment you Specify.

     

  • Bilal Haider Profile Picture
    408 on at
    RE: EnvironmentName and EnvironmentType in launch.json

    thanks for reply. You are right that they are used to connect to BC and publish the app. But with Visual Studio Code we cannot connect to production and deploy app directly. Then what is purpose of giving environment type production there.

  • Suggested answer
    Bilal Haider Profile Picture
    408 on at
    RE: EnvironmentName and EnvironmentType in launch.json

    Asked this on a forum and answer to this as per Stefano Demiliani: Sandboxname will be obsoleted. environmentType specifies the environment to use to connect to Business Central, environmentName its name. Actually only sandbox environment type can be used from VS Code. News will follow...

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,209 Super User 2025 Season 2 on at
    RE: EnvironmentName and EnvironmentType in launch.json

    as far as I know, the environment type production is only used to download symbol from production (instead of sandbox). You still publish to sandbox.

    Also the environment type is not working now. there is a bug and it will be fixed in release 6.1.352568.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,085

#2
YUN ZHU Profile Picture

YUN ZHU 1,810 Super User 2025 Season 2

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 1,788

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans