BC Friday Tips #47 Enum Display Order

Enum Display

Happy #BCFridayTips for #msdyn365bc Developers!

💡Did you know Enum values in AL are displayed based on their order in the code, not their ordinal?

For example:

Enum

This will display:
” “, Apple, Banana, Fig, Grape, Cherry, Durian, Elderberry, Honeydew

👉 The ordinals don’t control display order, the code order does.

Why does this matter?

✅ You can rearrange values without renumbering the ordinals.

Share to help others ♻️ and follow for more tips! 🚀

thatnavguy

Experienced NZ-based NAV Developer and Consultant with 15+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central. Passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *