web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Base enums literals

(0) ShareShare
ReportReport
Posted on by 150

Hi All, Can somebody please provide an article or explain to us the Literals property on Base Enums (D365 FinOps) and also the reason why we have table in SQL named ENUMVALUETABLE and how does it work.

I have the same question (0)
  • MATTGUO Profile Picture
    22,349 Moderator on at

    Hi Ammar,

    Enums in X++ are defined in AOT to represent a list of literals, or named constants, enum literal is the value of enum(such as “table” in the picture).

    1586.pastedimage1588240864417v1.png

    Enum values are represented internally as integers.

    The ENUMIDTABLE table stores the base enum ids while the ENUMVALUETABLE table stores the numeric values assigned to every element of the base enum. While the ENUMIDTABLE table contains records for every base enum in the system, ENUMVALUETABLE is only populated for extensible enums.

    Refer to:https://www.axug.com/blogs/cruz-margaix-huerta/2019/02/20/moving-an-overlayered-enum-to-an-extension-in-a-sa

    Moved this post to D365 Finance forum: https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum

  • Ammar Salah Profile Picture
    150 on at

    Thanks for sharing the article, any idea regarding the Literals property on base enum? Also when we rename one of the values in base enums or add/delete enums the ENUMVALUETABLE does not sync correctly it doesnt remove any deleted base enum (after DB sync).


  • MATTGUO Profile Picture
    22,349 Moderator on at

     Hi Ammar,

    How did you change your base enum, did you extend it correctly?

    64438.png

    57285.png

    Have a look at the keywords forcePlaceholders and forceLiterals of the Literals property, and you don’t have to change it.

    https://docs.microsoft.com/en-us/dynamicsax-2012/developer/select-statement-syntax?redirectedfrom=MSDN

  • Ammar Salah Profile Picture
    150 on at

    Thanks MATTGUO, any way my base enum is customized. changing the Extensible to false i can see the EnumValue now
    5556.Capture.JPG

    ----

    2185.Capture1.JPG

  • MATTGUO Profile Picture
    22,349 Moderator on at

    Hi Ammar,

    If the enum is not extensible, the Enum Values are stored as metadata in the enum XML file.

    And extensible enums have their values stored in SQL.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans