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)

Advanced filter: CreateDateTime = Today() doesn't work

(0) ShareShare
ReportReport
Posted on by 245

Hi,

I'm setting up Cues for my role center, and in doing so I'm setting up some advanced filters. I'm in the Sales Order Details, and trying to filter out orders who are past ship date (late orders) and new orders created today.

For the first filter it works just fine to use: Sales order-Confirmed Ship Date = today()

But for filtering on orders created today, the following doesn't work: Sales order-Created date and time = today().

It wont return any orders. If I substitute today() for today's date (2011-03-23) it returns all orders created today, as expected. 

Can anyone help me with this? Should be simple enough, but googling this isn't giving me any answers.

Thanks

//Henrik

Ps. On a similar subject: What is the syntax (in the advance filter) for saying for example yesterday? when I enter "today()-1" for the first query above I get the same result as if I enter just today(). Ds.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Use (day()), (day(-1)) and so on. Don't forget the parentheses.

    For details, take a look at the SysQueryRangeUtil class.

  • Community Member Profile Picture
    on at

    Is there any similar functionality for AX 4.0?

  • Suggested answer
    David Massey Profile Picture
    on at

    This functionality does not exist in AX 4.0.   Support adding these types of filter on the query range was added in AX 2009.

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans