Skip to main content

Notifications

Community site session details

Community site session details

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

EnumIdTable and EnumValueTable

(4) ShareShare
ReportReport
Posted on by 409
Hi guys, is there any way to get the information that contain this tables by a X++ development?
I need this information to export it to an external database.
Thanks!
Categories:
  • Martin Dráb Profile Picture
    232,498 Most Valuable Professional on at
    EnumIdTable and EnumValueTable
    What is the business problem you're trying to solve by accessing these tables from X++?
     
    In X++, you should use names, not IDs. For example, you may have code like if (value == MyEnum::MyValue) and it'll work correctly in environments where MyEnum::MyValue is stored as 10, as well as in environments where the value is 20.
     
    But if you really need an ID, you can use X++ functions such as enum2int(). That some of the values are stored in EnumIdTable or EnumValueTable is an implementation detail that you shouldn't expose in your code.
  • Nisarg Jani Profile Picture
    83 on at
    EnumIdTable and EnumValueTable
    Hi,
     
    Your Question is bit confusing for understand, But I believe that you are asking about exporting Certain Enum Value and Id to External DataSource.
     
    You can get all EnumId and EnumValue for certain Enum using X++ to export or utilize the SRSAnalysisEnums Table Present in F&O. Make sure to check for the Custom Base Enum in the Table.
     
     
    Regards,
    Nisarg Jani
  • Layan Jwei Profile Picture
    7,744 Super User 2025 Season 1 on at
    EnumIdTable and EnumValueTable

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,354 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,498 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans