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 / Flow to pull last 7 da...
Power Automate
Unanswered

Flow to pull last 7 days in Sharepoint list not working.

(0) ShareShare
ReportReport
Posted on by 28

Hi All, 

I built a recurring flow that will send me an email every Monday with the items populated in a SharePoint list. The flow works except that I only need it to pull the last 7 days of items. I tried doing a "Filter Query" but am not able to get the flow to work once that has been added.  I am not sure how to get this to work at this point. Any help would be greatly appreciated. 

 

Amy1349_1-1685545184258.pngAmy1349_2-1685545266143.png

 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @Amy1349 

    You're on the right path! In the filter expression you need to add the column name and the OData operation (greater than (gt), greater or equal than (ge)). So you would write something like this in the filter query expression:

    modified ge addDays(utcNow(),-7)

    You should use ISO 8601 format for dates and times (yyyy-mm-ddThh:mm:ssZ) and the expression addDays returns dates in that format.

    Hope that helps!

    Ferran

  • Amy1349 Profile Picture
    28 on at

    Hi, 

    I probably entered this wrong but I am still getting error messages. Sorry I am pretty new to this and teaching myself as I go. 

     

    Amy1349_0-1685549378873.pngAmy1349_1-1685549437751.png

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard