Launch in a specific company from Visual Studio Code
Important
This content is archived and is not being updated. For the latest documentation, go to What's new and planned for Dynamics 365 Business Central. For the latest release plans, go to Dynamics 365 and Microsoft Power Platform release plans.
Enabled for | Public preview | General availability |
---|---|---|
Admins, makers, marketers, or analysts, automatically | Sep 1, 2022 | Oct 1, 2022 |
Business value
You can have multiple companies in a Business Central tenant. When you debug or test your app, you often want to do this in the context of a specific company. In earlier versions, you couldn't control which company to use when you launched the client from Visual Studio Code. Typically, you would have to set up the default company in the client first.
Feature details
A new startupCompany
parameter has been added to the Visual Studio Code launch.json configuration file. Use it to specify the company to use when the client is launched from Visual Studio Code, such as when you run or debug.
See also
Launch.json file (docs)