D365 Business Central : Hide Enum Values

Enum is great way to centralized your list of options in Business Central. You can define an enum, then use the enum on every objects (such as table, page, report, etc) and they will all have the same list of options.

However, what if you want to hide some of the options on specific pages or tables because it is not valid option for them ? It’s a good design to only provide user with only the options that they are allowed to choose.

Source : That NAV Guy
Read more…

Forbidden Knowledge: How To Find Field Values from External Apps in Business Central

I was working on a report in Microsoft Dynamics 365 Business Central recently, and the client wanted the report to show a value from an extension that was not a dependency for my customizations app. Because I am lazy efficient, I did not want to go to the trouble of adding an entire separate app as a dependency just to get a single field onto one report. Adding dependencies is a lot of work and requires future maintenance, and it just wasn’t worth it.

Source : ArcherPoint
Read more…

Business Central API – Filter Child Array Values Using $filter Query Option

I had a difficult time finding an example of this type of API filtering using the OData $filter query option, so I wanted to share an example that I needed for a project.

For context, this is a very simple example of a Business Central API “child array” that I wanted to filter. Technically, I think that OData calls this an “expanded navigation property”.

Source : Steve Endow
Read more…

Converting Enum values in AL

During my AL training classes, a frequently asked question is how to convert enum values to and from integer or text. So I thought it would be a good idea to share with you what possibilities you have.

First of all, we need to understand the properties of an enum. Let’s look at an enum definition and see how it is constructed.

Source : Kauffmann @ Dynamics 365 Business Central
Read more…