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 Query - AddDays...
Power Automate
Answered

Filter Query - AddDays issue

(0) ShareShare
ReportReport
Posted on by 203

In the List Records action, I'm trying to get records that have a notification date of 5 days from now. If I set my Filter Query to 

 

xxxx_notificationdate eq '@{formatDateTime(addDays(utcNow(), +5), 'MM/dd/yyyy')}'

 

is actually getting record with less than +5 days from now. How do I correctly get records that match 5 days from my calendar day?

Categories:
  • Verified answer
    ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @saturation 

    Try using the following date format in your expression: yyyy-MM-dd

    That is the format that SharePoint uses internally.

     

     

  • saturation Profile Picture
    203 on at

    @ScottShearer This is a D365/CDS date....Does that make a difference?

  • saturation Profile Picture
    203 on at

    Actually, looks like that worked!

  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @saturation 

    I'm glad that it worked for you!  Please mark your post as Solved - that will help others with a similar issue fin an answer.

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard