web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dynamics 365 Filter date
Power Automate
Unanswered

Dynamics 365 Filter date

(1) ShareShare
ReportReport
Posted on by 2

I'm new to Flows but from what I've read I should be able to trigger events based on information within Dynamics 365 entities. I'm trying to find all records in an entity within a specific date range.  This will be a recurring process, and each record found would create an email to a contact within that entity.

 

So far I have built the recurrance, and added the email, but I can't figure out the expression to find records within the date period.  Can someone offer advise?  The date field is 'new_proposalsentdate' and the time period I'm targeting older than 5 days but less than 6.

 

I have this so far:

 

flow-1.JPG

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @pfinigan,

     

    According to your description, I have made a simple test on my side with the entity Opportunities.

     

    I use the Odata filter to filter items that actual close date within a specific date range.

     

    The code I am using is:

    Actualclosedate ge formatDateTime(addDays(utcNow(),-5),'yyyy-MM-dd') and actualclosedate le formatDateTime(addDays(utcNow(),6),'yyyy-MM-dd')

     

    It just works fine. Please take the following screenshot for a reference:

    1.PNG2.PNG

     

    Please take the following doc on Odata filter query for more details:

    https://docs.microsoft.com/en-us/previous-versions/dynamicsnav-2016/hh169248(v=nav.90)

     

    Please try it on your side and feel free post back if you need more help.

     

     

    Best regards,

    Mabel Mao

  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    Hello, @pfinigan!

     

    Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yamao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


    Thank you for being an active member of the Flow Community!

     

    -Gabriel
    Flow Community Manager

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard