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 / Filter for date that a...
Power Automate
Answered

Filter for date that are exactly 10 days from today

(1) ShareShare
ReportReport
Posted on 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

 

 

Categories:
I have the same question (0)
  • trice602 Profile Picture
    15,983 Super User 2026 Season 1 on at

    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.

     

     

     

     

     

     

  • Verified answer
    trice602 Profile Picture
    15,983 Super User 2026 Season 1 on at

    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!

     

     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard