Posts

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

Transfer Files To SFTP Using WinSCP in C#

Image
Install WinSCP from NuGet Package manager Code Example: //sessionOptions.Protocol = Protocol.Sftp; sessionOptions.Protocol = Protocol.Ftp; sessionOptions.HostName = ftpurl; sessionOptions.UserName = ftpusername; sessionOptions.Password = ftppassword; //sessionOptions.SshHostKeyFingerprint = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; Session session = new Session(); session.Open(sessionOptions); TransferOptions transferOptions = new TransferOptions(); transferOptions.TransferMode = TransferMode.Binary; TransferOperationResult transferResult; //This is for Getting/Downloading files from SFTP transferResult = session.GetFiles(DirectoryPath, destinationFtpUrl, false, transferOptions); //This is for Putting/Uploading file on SFTP transferResult = session.PutFiles(DirectoryPath, destinationFtpUrl, false, transferOptions); transferResult.Check();

PGP Encryption and Decryption in C#

Image
Add package called PgpCore from NuGet Package manager. Code example: using (PGP pgp = new PGP()) { // Generate keys pgp.GenerateKey(@"C:\TEMP\keys\public.asc", @"C:\TEMP\keys\private.asc", "email@email.com", "password"); // Encrypt file pgp.EncryptFile(@"C:\TEMP\keys\content.txt", @"C:\TEMP\keys\content__encrypted.pgp", @"C:\TEMP\keys\public.asc", true, true); // Encrypt and sign file pgp.EncryptFileAndSign(@"C:\TEMP\keys\content.txt", @"C:\TEMP\keys\content__encrypted_signed.pgp", @"C:\TEMP\keys\public.asc", @"C:\TEMP\keys\private.asc", "password", true, true); // Decrypt file pgp.DecryptFile(@"C:\TEMP\keys\content__encrypted.pgp", @"C:\TEMP\keys\content__decrypted.txt", @"C:\TEMP\keys\private.asc", "password"); // Decrypt signed file pgp.DecryptFile(@"C:\TEMP\keys\content_...

How to call Web Service (GET/POST) from MS Dynamics NAV C/AL

Image
//Get url := 'https://httpbin.org/ip'; CREATE(WinHttp); WinHttp.Open('GET',url,FALSE); WinHttp.Send(JsonTxt); JsonTxt := WinHttp.ResponseText; MESSAGE(FORMAT(JsonTxt)); //Post url := 'https://reqbin.com/echo/post/json'; CREATE(WinHttp); WinHttp.Open('POST',url,FALSE); WinHttp.SetRequestHeader('Content-Type', 'application/json'); CREATE(XMLDoc); NodeText := XMLDoc.createTextNode(''); NodeText.appendData('{ "Id": 78912'); NodeText.appendData( '"Customer": "Jason Sweet",'); NodeText.appendData('"Quantity": 1,'); NodeText.appendData( '"Price": 18.00}'); WinHttp.Send(NodeText.nodeValue); JsonTxt := WinHttp.ResponseText; MESSAGE(FORMAT(JsonTxt)); Variables: Name DataType Subtype Length ResponseStream InStream     ResponseBuffer BigText   ...