Skip to main content

Posts

Showing posts with the label App

Client Management in Business Central using AL Code

Introduction: Have you ever got into a requirement, where you are needed to actually execute the logic separately for different client types? Well, this blog is just going to discuss the ClientType DataType and different ways of getting ClientTypes and how to use it in your code. Pre- requisites : Microsoft Dynamics Business Central Online AL Language Extension VS Code References: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/session/session-currentclienttype-method https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/session/session-defaultclienttype-method https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/clienttype/clienttype-option Demonstration: ClientType: In order to understand how to use ClientTypes, we need to understand what ClientTypes represents. ClientType is an Option based DataType introduced in Business Central. That is in order to get