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 :
Customer experience | Sales, Customer Insights,...
Suggested answer

Entitiy view with datetime filter = older than current date time

(0) ShareShare
ReportReport
Posted on by 75

Hello

We have a custom datetime field "wait until" on the case entitiy. I would like to create a view which shows all cases where the "wait until" is older than the current datetime. How can I use the dynamic current datetime as a filter in a view/advanced find?

Example:
Current date time (now) 06.01.20201 10:08

Record 1:
Wait until = 05.01.2021 18:00

Record 2: 
Wait until = 06.01.2021 08:00

Record 3:
Wait until = 06.01.2021 20:00

Record 4:
Wait until = 07.01.2021 09:00

Only Record 1 & 2 should be shown in the view. But when I open the same view on 08.01.2021 all 4 records should be shown.

I have the same question (0)
  • Suggested answer
    CRMJetty Profile Picture
    3,512 on at
    RE: Entitiy view with datetime filter = older than current date time

    Hello Joshua Lehmann,

    Using Older than X Minutes = 1 you can achieve what you want.

    Refer this image

    5811.Blog-Image-1.png

  • Joshua-Lehmann Profile Picture
    75 on at
    RE: Entitiy view with datetime filter = older than current date time

    Hi Mike and Vinay

    Thanks for your suggestions! However I think both of them do not solve my issue. 

    But I think I found a way myself which could work:

    DateFilter.png

    Since I think the "older than x Minutes" always is relative to the current date/time it should work to only show me recrods where the date field is < now

  • Vinayadav Profile Picture
    25 on at
    RE: Entitiy view with datetime filter = older than current date time

    Hi Mike,

    You can use filter like below.

    pastedimage1609953037697v1.png

    Hope this will help.

    Check below 

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/220047/use-time-in-advanced-find?pifragment-97030=1

    Thanks

    Vinay

  • Community Member Profile Picture
    on at
    RE: Entitiy view with datetime filter = older than current date time

    Whoops, youre right.  To correct myself.  You could do something 'wild', like this:

    pastedimage1609948006745v1.png

    I realize this does not solve for the time portion.

  • Joshua-Lehmann Profile Picture
    75 on at
    RE: Entitiy view with datetime filter = older than current date time

    Hi Mike

    Thanks for your suggestion, the time is quite important, since the view is used to show all cases where this date "expierd". So you know which need imediate attention. 

    But neverless I tried your suggestion but was not able to get it to work. Since when I choose "on or before" as filter operator I can only input a specific date but not a dynamic value like "today"?

    6180.Filter.png

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Entitiy view with datetime filter = older than current date time

    How tied to the time are you?  Out of the box you could do a filter on the view 'On or before' = today.

    Example:

    Time is today at 16:00

    Record 1 today at 10:00

    Record 2 today at 20:00

    You would see both records.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 208

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 182

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 77 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans