Posts

How to create documentation comment using Custom Snippets in VS Code for AL - D365 Business Central.

Image
Code documentation is a process of writing additional information to help others understand how your code works. It can include anything from comments in the code to separate documents that explain the code’s architecture, dependencies, and purpose. Also, development teams have their own format for the documentation. Writing the document comment every time can be time consuming. For this we can create custom Snippets. To create a custom code documentation comment using snippets in Visual Studio Code, you can follow these steps: In VS Code Go to Settings -> User Snippets Select AL as we want this Snippet for AL language. al.json file will open then add configurations as follows: Add a new object with a name for your snippet and a prefix that will trigger the snippet. For this example, we write tDocumentationComment Add a description field to describe what the snippet does. Add a body field with the code you want to include in the snippet. You can use placeholders like ${1:variable} ...

Different use of AL Find Functions for Filters in Dynamics 365 Business Central

Image
This post provides tips about different find function in Business Central, including both long-standing C/AL strategies and newer concepts like partial records. FindSet vs FindFirst/FindLast FindSet and FindFirst/FindLast are two methods utilized in Dynamics 365 Business Central for extracting records from a table. The key distinction between them is that FindSet fetches a group of records, whereas FindFirst only fetches the initial record in the filter and FindLast fetches the last record. FindSet is employed when there’s a need to traverse through a sequence of records, and it’s advisable to use FindSet(true) if there’s a requirement to alter any record within the group. Conversely, FindFirst/FindLast is employed when only the initial or last record is needed and there’s no requirement for a loop. SetLoadFields  The SetLoadFields function only loads the specified fields, thereby not fetching the remaining fields in the table and ensuring a quicker load. It is suitable for searchi...

List of All Standard Reports (Built-In) in Dynamics 365 Business Central

Image
1.  General Journal – Test 2.  Detail Trial Balance 3.  Receivables-Payables 4.  Trial Balance/Previous Year 5.  Trial Balance/Budget 6.  G/L – Tax Reconciliation 7.  VAT Statement 8.  Tax Register 9.  Consolidation – Test Database 10.  Consolidation – Test File 11.  G/L Consolidation 12.  Eliminations 13.  VAT- VIES Declaration 14.  Tax Auth 15.  Calculate and Post Tax 16.  Settlement 17.  No. Series 18.  No. Series Check 19.  G/L Document Nos. 20.  Sales Taxes Collected 21.  Account Schedule 22.  Dimensions – Total 23.  Dimensions – Detail 24.  Dimension Check Value Posting 25.  Tax Exceptions 26.  Batch Tax Registration 27.  No. Check 28.  Reconcile Customer and 29.  Vendor Accounts 30.  Document Entries 31.  Fiscal Year Balance 32.  Balance Comp. – Prev. Year 33.  Trial Balance by Period 34.  Customer – Detail Trial...

The new CRONUS license: Demonstration License for Dynamics 365 Business Central

Image
The new demo license is automatically installed when you install the Demo Option. The license gives access to any Business Central application, including the Base Application, and full access to app development. Properties of the demo license When the demo license is installed, you can: Start ten simultaneous client sessions on any platform. Create up to two companies. Support an unlimited number of web users. Run in any supported language. Use all application functionality, including add-on products, local extensions and customizations in current and previous versions. This means that you can run and modify all object types within the range 1 to 99,999,999. The new license will only be shipped in .bclicense format and will not be possible to use with older versions of Business Central or NAV. Valid for 10 years from now (no need to update it frequently). You can run automated tests in any period of the year (only the UI has limits on periods). All ranges in the demo license are now op...

Use Microsoft Dynamics 365 Business Central in Microsoft Teams App

Image
Employees with Microsoft 365 licenses but no Business Central licenses can have now view only access of Business Central (Cloud) from Teams with the proper configuration, read Business Central records that are shared with them in Microsoft Teams chat and channels. Administrators can set environments to enable access with Microsoft 365 licenses and specify exactly which tables and other objects this category of user will have access to when an organization has both a Dynamics 365 Business Central and a Microsoft 365 subscription.  Read more at:  Business Central Access with Microsoft 365 licences - Business Central | Microsoft Learn Send link into the Team User can open the link into Team for this example it is PO list Use can view the detail PO as well in Teams

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

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