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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX7 query options at advanced filter

(0) ShareShare
ReportReport
Posted on by

Hi all,

in AX2012 there was the possibility to use query options, like (day(-1)) or (dayrange(-5,0)).

I tried same logic in AX7, but get no results. Isn't this feature available in AX7?

Greetings,

Lars

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at
    RE: AX7 query options at advanced filter

    Could you try "matches" instead of "is exactly" ?

  • Community Member Profile Picture
    on at
    RE: AX7 query options at advanced filter

    Ievgen, thanks for your reply.

    I get the following error message: Invalid value (\(dayRange(-5\, 0)\)) specified in the query predicate.

    Purchase order with advance filter for "is exactly" on delivery date. Can you try this, please.

  • Mea_ Profile Picture
    60,284 on at
    RE: AX7 query options at advanced filter

    Hi Lars,

    I just tried to use (dayRange(-5, 0)) in advance filter on PO form and it worked for me as a charm. I did my testing in AX 7 RTW.

  • Community Member Profile Picture
    on at
    RE: AX7 query options at advanced filter

    Hi Martin,

    for example: I open all sales orders form. Then I create a filter, that give me all sales orders with create date in the last 5 days. This should be dynamic, because if today's day is tomorrow, it should give me also the last 5 days.

    I'm looking for a function, the user can easily use. Like (dayrange(-5,0)) in AX2012.

  • Martin Dráb Profile Picture
    235,876 Most Valuable Professional on at
    RE: AX7 query options at advanced filter

    As far as I know, it should not only work, but it's even more powerful then before. Take a look at QueryRangeFunctionAttribute as a replacement for SysQueryRangeUtil.

    Can you describe your exact scenario?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans