Monday, June 29, 2020

READ and WRITE file(s), BLOB and ZIP by using INSREAM and OUTSTREAM in Microsoft Dynamics 365 Business Central

Hi Readers, 

Hope you are doing well.

Today we'll talk about File Management in Business Central. 

INSTREAM and OUTSTREAM are used to access binary data (such as File or BLOB) that are stored in Objects. In this blog, we’ll see how to use InStream and OutStream in AL for Business Central.

InStream:

This is used to read bytes from a stream object in binary format, and you can use the Read and ReadText functions to read that format.

Monday, June 22, 2020

What is Microsoft Dynamics 365 and its benefits?

Microsoft has stepped up its game in SaaS and got all the things under one roof! Now, what do II mean by this… we’ll see as I speak about it. I know it’s been few years that they achieved such a thing known as Dynamics 365, and many of you must be aware too, but the way Dynamics 365 is enhancing and progressing, II cannot stop myself from writing a blog about it! So please stay with me on this blog, you might discover something new or at least have an overview. 
365 is an amazing and sensible term that they have used. Image it as a circle. In a circle, any point can connect with any point and doesn’t have any start point. Consider Dynamics 365 the same. How awesome is that!

In Dynamics 365, there are so many Microsoft Products which you can Connect, Integrate and combine them. The ones that were on – Premise have been deployed as SaaS. For example, NAV as Business Central and Power BI in Dynamics 365. 

Monday, June 15, 2020

Automation API in Dynamics 365 Business Central 2020 Wave 1 April 2020 release

Hi Readers, 
Business Central 2020 wave 1 came up with a lot of features and is enhancing more and more, day by day. Check out the updates here: Business Central 2020 wave 1

One of the features of Business Central 16 is the advancements in APIs. These automated APIs give you the facility such as calling this Automated API and change company setup after the tenant is created. It is placed in microsoft/automation. These APIs work like any other APIs with POST, GET, PATCH requests.


Some of the examples are as follows:

Automate Company:

----------------------------------------------------------------------------------------------------------------------
POST https://api.businesscentral.dynamics.com/v2.0/{environment name}/api/microsoft/automation/{apiVersion}/companies({companyId})/automationCompanies

Monday, June 8, 2020

Enum and how to use and extend them in Microsoft Dynamics 365 Business Central

Hi Readers, 
As you might be aware that Business Central 16 has come with a lot of features from which one of them is advancements in enums. They have been existing from quite some time, but now they are used extensively and most of the fields are extensible. You can also use them for local and global variables as well as parameters. 

But what are exactly enums? They are quite popular in other programming language and doesn't mean anything different. Enums are set of constants which with an assigned ID. It is like a menu through which you can make a choice and this is called enumeration. One example can be an optionstring to which you can add another option value. 

Declare an enum:

Tuesday, June 2, 2020

AL Interfaces in Microsoft Dynamics 365 Business Central

Hi Readers,
Microsoft Dynamics 365 Business Central is enhancing and in April 2020, came with new features and advancements. 
To know what all accessible features do we have in Microsoft Dynamics 365 Business Central 2020 Wave 1 release, refer Business Central 2020 Updates

There is one interesting feature about which I wanted to write from forever, and that is AL Interfaces. 

Now, what are Interfaces, how to use them and what are its benefits? I'll try to explain it as simply as possible.