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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Base Enum in AX 2009 Query

(0) ShareShare
ReportReport
Posted on by 535

Hi All,

I've trail balance report, I want to get report based on ledger account & Posting layers like Current, Operations, Tax, Only Operations, Only tax, Total

Technically, how to pass more than two Enum parameter value to retrieve the trail balance report.

Thanks

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Pass from where? From query dialog? Or x++ code?

    You can pass many enum value ranges in a query dialog by providing many values separated by comma.

    And in x++ you can add many ranges for the same field (also for enum field) and the ranges will be considered as OR.

  • Vignesh R Profile Picture
    535 on at

    Hi Nikolaos,

    From Dialog box, I need to pass multiple base enum values to retrieve the ledger records using Trail balance.

    Kindly share if you have any example x++ code.

    Thanks

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You can do it with the standard query dialog (the one that you can open with Select button if your batch / report has a query), no need for x++ development

    In normal dialog field it's possible to select only one enum value.

  • Vignesh R Profile Picture
    535 on at

    Hi,

    I've added new data source(Ledger trans) into report and but ledger trans table was already used in X++ query.

    In few conditions, enum is assigned as static value. so , I've changed it. Now, it is working if we pass different enum values.

    But, if we pass multiple enum value, it is considering only first value of base enum and retrieving records.

    Kindly suggest if you have any idea.

  • nmaenpaa Profile Picture
    101,166 Moderator on at

    Could you please share your code? How do you pass multiple enum values?

  • Vignesh R Profile Picture
    535 on at

    we can pass the values in Dialog box query.

    I've doubt here, Is it possible to pass multiple enum values in report dialog box to retrieve record?

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You can input multiple values in the query dialog. Most likely your issue is somewhere else.

    I just tested this with AX2009 with Customers report and it works.

    I have two customers, A and B. I set the "Stopped" value (on General tab page") to "Invoice" for the other customer. For the other one I left the default value "No".

    Then I printed Customers report, and selected these two customer accounts in the account number criteria.

    Then I added filter for "Stopped" field, adding two values: "No" and "Invoice". Both customers were printed.

    I changed the filter for "No" and "All". Only one of the customers was printed on the report.

    So it definetely works, and your problem is explained by something else than not being able to pass multiple enum values in the query dialog.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 653

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 493 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 317 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans