MADHDA Business Solutions
  • Home
  • About Us
    • Privacy Policy
  • Services
    • Implementations
    • Support
    • Training
    • Upgrade
    • Business Analysis
  • Solutions
    • MS Dynamics 365 Business Central
    • MS Dynamics Nav
    • MS Dynamics 365 Sales/CRM
    • Power BI
    • Power Automation
  • Resources
    • Blog
  • Contact Us
  • Enum objects in Business Central that how to use and extend

Enum objects in Business Central that how to use and extend

23 July 2020

Enum objects in Business Central that how to use and extend

What Are Enum ?

An enumeration type, also known as enum in programing, Enum is a keyword used to declare a type that consists of set of named constants. The list of named constants is called the enumeration list. Enum can be used as table fields, local and global variables, and parameters.

Now we see how to defines and how to extend enums. Here we take one example to understand enums.

Create Enum in AL

We will Open Vs Code.

Create new project. And then create enum as object. Enum behaves like object table and page. And must set Enum property “Extensible” to true. So we can extend that Enum.

 

 

After creating enum we include it to table and page.

 

 

 

After including in table and page now we see how it looks.

 

 

Extends Enum in AL

In AL we can’t extend in same module. We can extend it in different module.

 

 

After extending enum in diferent module we can see that value is added in our enum field.

 

Previous post: Import to Excel Data Report in Business Central
Next post: How to Create AL Snippets Using Visual Studio Code For Microsoft Dynamics 365 Business Central

Categories

  • Microsoft Dynamics 365
  • Microsoft Dynamics Business central
  • Microsoft Dynamics NAV
  • Uncategorized

Recent Post

  • Business Central : Retrieving Azure AD User information via AL.
    March 20, 2023
  • Change Authentication method from Basic Auth to OAuth2 while accessing Business Central Webservice / APIs.
    February 27, 2023
  • How to use "Dictionary" Object type into Business Central.
    February 17, 2023
  • Post Transaction Using Configuration Package in Business Central.
    February 13, 2023
  • How to Import Image from Excel to BC using Azure function.
    February 6, 2023
 


    © Copyright 2020 | All Rights Reserved By MADHDA