Skip to main content

Notifications

Community site session details

Community site session details

Session Id : luyCrVMCvQE86SAyXr3nMz
Power Automate - Building Flows
Answered

Filter for date that are exactly 10 days from today

Like (1) ShareShare
ReportReport
Posted on 26 Jan 2024 15:00:04 by 165

hi,

im trying to filter for data in a column in dataverse.

i want to send an email to users who meet my filter criteria. which means event_end_date should be exactly 10 days from today.

im currently using Fetch Xml Query but its getting me data that are within the 10 days.

<fetch> 
 <entity name="um_p012_bus_services"> 
<attribute name="um_name"/>
<attribute name="um_event_end_date"/>
 <filter type="and"> 
 <condition attribute="um_event_end_date" operator="next-x-days" value="10" /> 
 </filter> 
 </entity> 
</fetch> 

damiosiks_0-1706281125435.png


is there any method that can be used? if yes, i would like suggestions. thank you

 

 

  • Verified answer
    trice602 Profile Picture
    13,768 Super User 2025 Season 1 on 26 Jan 2024 at 17:26:48
    Re: Filter for date that are exactly 10 days from today

    Hi @damiosiks ,

     

    Here's a little cleaner expression; thanks to  @wskinnermctc for sharing with me.  

     

    um_event_end_date eq 'addDays(utcNow(),10,'yyyy-MM-dd')'

     

    The formatDateTime() expression is not needed because the formatting is already an option within addDays() and actually any date expression.  Never stop learning!

     

    Thanks again @wskinnermctc for the knowledge and let us know @damiosiks if the expression helps you keep going!

     

     

  • trice602 Profile Picture
    13,768 Super User 2025 Season 1 on 26 Jan 2024 at 15:22:28
    Re: Filter for date that are exactly 10 days from today

    Hi @damiosiks ,

     

    Please try the filter query:

     

    um_event_end_date eq 'formatDateTime(addDays(utcNow(),10),'yyyy-MM-dd')'  

     

    Be sure to put the date expression shown above inside apostrophes.  This will give you the date 2024-02-05 and will provide the filter you want.

     

     

     

     

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started