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 :
Microsoft Dynamics AX (Archived)

Get All Enum Item Name description

(0) ShareShare
ReportReport
Posted on by

Hi All,

I would like to get all the descriptions against enum values. I was looking this table( select * FROM SRSANALYSISENUMS ) it does not have all the descriptions. e.g. JopPayType in Project Data entity, ProjectStatus. In these columns number values are coming like 0,1, 2 etc.

Is there anyway to extract all descriptions against enum values in excel or csv or direct to SQL Server table?

Look forward to hearing a suggestion or answer soon.

Many thanks.

*This post is locked for comments

I have the same question (0)
  • add Profile Picture
    on at

    Hello Mhaider,

    Try this one:

    https://msdn.microsoft.com/en-us/library/dictenum.index2label.aspx

  • Mhaider Profile Picture
    on at

    Thank you for your reply add. How can I see the output? Can I have an output direct to SQL Table or in a CSV file?

    Regards.

  • add Profile Picture
    on at

    Hello Mhaider,

    The link I sent you is a X++ code. You can test and see its output in a Job (Runnable class) but I am not sure if it is applicable for your version. As for SQL/CSV output I am sorry but I can't help you.

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Mhaider,

    The SrsAnalysisEnums table is having the enumerations which are part of perspectives (AOT > Data Dictonary) only. You can add tables into (new) perspectives or write own logic to populate data in a table or file.

  • Mhaider Profile Picture
    on at

    Hi Andre, Thank you for your reply. Does it mean that there is no way to get all enum values except to write code in X++ and populate SQL table?

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    The other option is to add the tables using other enumerations in perspectives.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    This was possible some years back directly from SQL. Now due to changes on the data model and properties of AX objects, the SQL script requires tweaking as the owner of the solution has mentioned. I am going to link it here, maybe you have the time and resources to get it updated, and share the final solution with us:

    community.dynamics.com/.../156472

  • Mhaider Profile Picture
    on at

    Hi Vilmos, I have seen this already. But I am new to AX /D365  will see if i can find something.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    If there is no updated version for that script and you cannot fix it yourself, that means it is not possible to directly fetch all enumeration labels from the database without some form of customization. You would need some sort of metadata provider class for that, which means writing X++ code, or doing the Perspective tables to get it populated for reporting purposes, as it was suggested above.

  • Mhaider Profile Picture
    on at

    Hi, I found this msdn.microsoft.com/.../ledgerpostingtype.aspx where all enumerations are available. Question here is how frequently it gets updated? You can see all enumeration's descriptions. can we use this as a source if we know it does not update frequently?

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Sukrut Parab Profile Picture

Sukrut Parab 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans