Plaza 365
Plaza 365

No results found for your search

RegisterLog in

7

Visit article

#al

#loop

Dynamics 365 Business Central

Category

Feb 22, 2025

Published date

Text

Article Type


AI Summary

  • The article provides a mini tip on how to retrieve all Enum Values in AL for Business Central.
  • Enumerations are used to declare a type consisting of named constants in programming.
  • AL Explorer can be used to find all Enums by grouping them by Type.
  • Enum 37 "Sales Line Type" is used as an example in the article.
  • In AL, Enum.Names() Method can be utilized to get all values in a specific Enum at once.
  • Enum.Ordinals() Method can be used to retrieve just the ids of Enum values.
  • FieldRef.EnumValueCount() Method is the fastest way to obtain the total number of values in an Enum.
  • The article mentions a new method, FieldRef.IsEnum, introduced in Business Central 2023 wave 2 for checking if a field is an enum.

Registered users can view the full text for FREE!

Sign In Now!