Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

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

(2) ShareShare
ReportReport
Posted on by 6
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!
  • Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    How to apply 'greater than today's date' filter on AOT View.
    Hi Community member,
     
    Is your question answered? If yes, then please verify the answers that helped
  • Verified answer
    Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    How to apply 'greater than today's date' filter on AOT View.
    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
  • Verified answer
    Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    How to apply 'greater than today's date' filter on AOT View.
    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
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 10,169 Super User 2024 Season 2 on at
    How to apply 'greater than today's date' filter on AOT View.
    Hi,
     
    try use this method in the range value "GreaterThanUtcNow ()"
     
     
    Best regards,
    Mohamed Amine MAHMOUDI

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans