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

Notifications

Announcements

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,404 Super User 2025 Season 2 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,404 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard