Skip to main content

Posts

CI/CD in NAV / Business Central Development using Azure DevOps

Introduction: Azure DevOps is a very handy tool to manage project tasks, milestones, bugs, and documentation.
But it is not just limited to that, it can also be used to manage all your deployments and building pipelines to manage your deployments.
Lets take a look how to do this and how we can setup our repository to make auto deployments.
Pre-requisites:VS CodeMicrosoft Dynamics NAV / Business CentralAzure DevOps SubscriptionUnderstanding of  Version Source Control System like Github or TFSUnderstanding of PowerShellBooks & References:https://freddysblog.com/category/ci-cd/https://www.linkedin.com/pulse/cicd-business-central-nav-using-azure-dev-ops-dennis-fredborg/https://github.com/olisterr/Webinars-Seminars/blob/master/365Saturday_Presentation_CICD_7-12-2019.pptxhttps://www.yammer.com/dynamicsnavdev/threads/414438668279808https://github.com/olisterr/CI-CD-Demonstration:1. Creation of Azure DevOps Repository: Creation of Azure DevOps Repository is the starting point of the every …

Checkout how Download Source Code feature on Extensions in Business Central Version 15 Production helps customers.

Problem:
A friend of mine was looking to migrate their Business Central development and support from one partner to another.
While, asking me for advice, I was evaluating what was the best solution knowing that their Business Central had customization installed and I found this which made it easy for them as their going to continue customizing Business Central from another partner.

Solution:

In Business Central version 14 Sandbox, you are allowed to Download Source Code.
But in Business Central version 14 Production, this was not the case. No Apps. could have been downloaded even though you got it developed from a Partner/ Developer and installed from them.

In Business Central version 15 Sandbox, you are allowed to Download Source Code just like you would in Business Central Version 14 Sandbox.
  And this is also the same condition  for Business Central version 15 Production tenant as well.

Without this, the possible solution to get your app source code back from Production, you would …

How Sync-NAVApp saved the discrepancies in the field in Business Central Extension Vs. Base App

Introduction: While Business Central upgrades from Version 14 to Version 15, there are few deprecation and additions done by Microsoft to the Base Application. These deprecation are good in terms of getting better systems as it upgrades.
The drawbacks of Deprecation is that your App needs to be upgraded as well as it use BaseApp as reference. Additionally, additions done are good but when you Extension App clashes with Upgraded Base App.
Let us discuss.
Pre-requisites:Microsoft Dynamics Business CentralUnderstanding of Business Central PowerShell Module.Books & References:https://www.yammer.com/dynamicsnavdev/threads/503231829262336?message_id=503231829262336https://community.dynamics.com/business/f/dynamics-365-business-central-forum/377346/error-in-app-deployment-in-business-central-v15Demonstration:
While I was creating Extension App, I had added a field in Table Extension of BaseApp Tables when Business Central was on Version 13.

Everything was fine until Microsoft decided to …

Top 6 Mainly using Features of Fixed Assets

Introduction: In this series of Fixed Assets aka FA, I will be teaching you through a lifecycle of the Fixed Assets. How to create and acquire these fixed assets, how to appreciate or depreciate the FA, and how to post transactions on Fixed Assets in Microsoft Dynamics Business Central.

Pre-requisites:Microsoft Dynamics Business Central(ERP)Understanding of Fixed AssetsDemonstration:1. Creation of Fixed Assets:
To create Fixed Assets search Fixed Assets and open the Fixed Asset List.
Click on New (+), automatically FA No. is set up from No Series.
Enter the FA Name, FA Class Type, FA Subclass Type, FA Location if you have multiple FA Locations.

Setup the FA Depreciation Book, by default we have COMPANY.
Also set up the Depreciation Start Date and End Date or Start Date and No. of Years.
Book value is the current value of the Fixed Assets. This value increases or decreases depending on your Appreciation or Depreciation of FA.

2. Acquire Fixed Assets:
There are two ways you can acquire Fi…

Generate Hash Value and Integrate Form Data Third-Party System using API Object.

Problem Statement: Every document that goes out or comes into Business Central requires some kinda validation to check its originality which confirms the confidentiality of the document. Introduction: This blog is a two-step process in which I will be explaining how things work and how to write a code for this.

This blog also is an update on Hannes Holst Blog(https://www.hannesholst.com/blog/technology/hash-hash-baby-secure-hash-algorithm-in-nav-365bc-and-a-little-more/) and you don't need to access any  .NET variable.

Pre-requisites:
Microsoft Dynamics Business CentralVS CodeAL LanguageUnderstanding of how data is transferred using API
Books & References:
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpcontent/httpcontent-data-typehttps://www.hannesholst.com/blog/technology/hash-hash-baby-secure-hash-algorithm-in-nav-365bc-and-a-little-more/https://www.yammer.com/dynamicsnavdev/threads/465800571707392
Demonstration:1. Creating a …

Generic way of Attaching Documents on any Record of the Page in Microsoft Dynamics Business Central - Template Code

Problem Statement: In Microsoft Business Central, there is a way to attach attachments only on Documents or Master Table records. But, what if this requirement is for other tables such as Opportunities, custom tables, etc. Introduction: I have seen many developers afraid to touch the attachment-related customization as it seems complicated.
Well, I have found a solution and here it goes.
In this blog, I'm attempting to create a generic template for code that needs to have an attachment feature on any table that you like using AL Code.
This means that you simply cannot copy-paste the same code for all the tables but a simple change in variable sub-type will ease your work significantly
Pre-requisites:Microsoft Dynamics Business CentralVS CodeAl Language ExtensionSource Code:https://github.com/olisterr/Generic-Attachment-Template Demonstration:1. How it works:
Document Attachment is a table which stores a few things that help in tracking information related to the attachment

The main u…