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 :
Finance | Project Operations, Human Resources, ...
Answered

How to apply 'greater than today's date' filter on AOT View.

(4) ShareShare
ReportReport
Posted on by 10
Hi Techies,
 
We are working on one data export requirement, a new data entity is created with view as a datasource, while exporting data from the entity we want to apply a filter on View/datasource where ToDate is greater than today's date or null.
 
Things we tried are -
Applied range in data source of view as below.
 
>= getdate()
>= t
 
The same view we are using in SQL as well. If anyone has worked on similar requirement please guide on this.
Any response is appreciated.
Thanks in advance!
I have the same question (0)
  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    26,416 Super User 2025 Season 2 on at
    Hi,
     
    try use this method in the range value "GreaterThanUtcNow ()"
     
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Verified answer
    Layan Jwei Profile Picture
    8,112 Super User 2025 Season 2 on at
    Hi,
     
    As Mohamed said, you can use greaterThanUtcNow()
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Verified answer
    Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    This issue has been discussed before on the forum and as mentioned below you can use greaterThanUtcNow() or you can simply take a look at the old thread. https://www.dynamicsuser.net/t/how-to-filter-greater-than-today-datetime-reocrds-in-aot-query/63713

    Best Regards,
    Hana
  • Layan Jwei Profile Picture
    8,112 Super User 2025 Season 2 on at
    Hi Community member,
     
    Is your question answered? If yes, then please verify the answers that helped
  • Suggested answer
    T徐-03070231-0 Profile Picture
    2 on at
    how  can I get the sessiondate  in the view
  • Martin Dráb Profile Picture
    237,948 Most Valuable Professional on at
    @T徐-03070231-0 your question doesn't belong here, because the thread is about a different topic. Please create a new thread and explain your problem in detail threre.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans