Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : d/eN2SJrd3IATVdH41rwZ6
Finance | Project Operations, Human Resources, ...
Answered

Add date range to AOT query (days difference)

Like (2) ShareShare
ReportReport
Posted on 27 Dec 2022 14:53:06 by 242

Hi,

We have a requirement to add range to a AOT query to filter the VendInvoiceJour records that has the posting date lesser than 10 days from the current date.

Could anyone provide details on how the range can be added in this case.

Thanks!

  • Suren_G Profile Picture
    242 on 30 Sep 2024 at 07:34:27
    Add date range to AOT query (days difference)
    ..
  • Vijay Yelmame VY Profile Picture
    446 on 28 Dec 2022 at 19:25:03
    RE: Add date range to AOT query (days difference)

    Hi Suren,

    (GreaterThanDate(-10)) is exactly same as (LessThanDate(10)).

    You can check both.

  • Suren_G Profile Picture
    242 on 28 Dec 2022 at 13:43:21
    RE: Add date range to AOT query (days difference)

    Hi Vijay,

    Thanks for your response. (GreaterThanDate(-10)) range value works. But we're facing one other issue which is different. Will create a separate thread for that.

  • Suggested answer
    Deepak Agarwal Profile Picture
    8,566 on 27 Dec 2022 at 16:58:27
    RE: Add date range to AOT query (days difference)

    It seems you want to modify a form view for the end user. You can try to achieve this by changing the form view on the front end and saving it. If I understand this correctly, you can avoid customization here.

  • Verified answer
    Vijay Yelmame VY Profile Picture
    446 on 27 Dec 2022 at 15:13:28
    RE: Add date range to AOT query (days difference)

    Hi Suren,

    below is also another approach, you can try and let us know.

    (LessThanDate(7))

    pastedimage1672154160136v1.png

  • GirishS Profile Picture
    27,823 Moderator on 27 Dec 2022 at 15:03:43
    RE: Add date range to AOT query (days difference)

    Hi Suren G,

    Try like "(today() - 7)" on the range value. I never done like this, and I am not sure it will work.

    But give it a try.

    Thanks,

    Girish S.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,289 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading started