Posts

Showing posts from May, 2023

Getting Start with D365 Business Central Development

Image
  Configure VS Code: Download and Install VS Code Install Extension a.           AL Language extension for Microsoft Dynamics 365 Business Central b.         AZ AL Dev Tools/AL Code Outline for Visual Studio Code Create New Project: In the command palette write AL to get all AL related commands.  To create a new project write AL:GO     Give project path     Select server type A JSON file named lanch.json will be created with the configuration settings. Change the settings as      per your configurations.  To know about the parameters of this configurations visit this url: Launch JSON file - Business Central | Microsoft Learn Now select AL: Download Symbols in the Command Palette. If       If the configuration is ok alpackages will be download. Select the Microsoft_Base_Application to see the available object list.      With the project a sample al file named HelloWorld.al was auto generated. Open that file.  I t is a page extension for Customer List page to show a message when the page

How to use D365 BC 2022 AdminTool from Windows PowerShel

Image
The new edition of "Dynamics 365 Business Central 2022" does not include a graphical interface for the admin tool. The command-line admin tool is not very user-friendly. A better alternative is to use "Windows PowerShell ISE". It has some features that make it easier to write commands for the admin tool. Here is how to use it: Write the following script in PowerShell and run it. It will open the admin tool in PowerShell.  Then you can choose different commands from the admin tool in the command window to write any script. Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\210\Service\NavAdminTool.ps1' If error execute: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted ·          To get all server configuration: Get-NAVServerConfiguration -ServerInstance BC210 ·          To set server configuration: Set-NAVServerConfiguration -KeyName DeveloperServicesEnabled -ServerInstance BC210 -KeyValue True ·