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 / Send Email for SharePo...
Power Automate
Unanswered

Send Email for SharePoint Library Files Modified in past week

(1) ShareShare
ReportReport
Posted on by 22

Hello! I'm trying to create an automated workflow that sends and email every Sunday with information on files modified within past week. I've looked at similar threads for ideas and can't get mine to work at all. If anyone has any ideas, I would appreciate the help. Thanks!
I've set up the recurrence and the targeted SharePoint Library:

DonnaW_0-1672844727107.png

I've set up the Filter array with @lessOrEquals(item()?["Modified"], addDays(utcNow(),-7,'o'))

Note: Showing this in both Basic and Advanced mode

DonnaW_1-1672844813289.pngDonnaW_2-1672844949594.png

Added my condition of an Image Tag containing "Academy"

DonnaW_3-1672845137120.png

And added the Action to send the email

DonnaW_4-1672845212957.png

When I ran my test, it came back as successful, yet the two subsequent automated runs are still running. 

DonnaW_5-1672845346465.png

 

Any ideas or suggestions? All help is greatly appreciated! 

Categories:
I have the same question (0)
  • AliB365 Profile Picture
    91 on at

    Hi @DonnaW 

     

    You have two triggers in your flow, a recurrence and when a item/file is created.  This is not generally supported.  What you want is a recurrence trigger with a "get files (properties only)" action that will retrieve files for the past 7 days.  Note that the following expression is case sensitive "Modified" and also note that the date expression is in single quotes '  '.

     

    Modified gt '@{formatDateTime(adddays(utcNow(),-7),'yyyy-MM-dd')}'

     

    AliB365_0-1672862883400.png

     

    Using a create table action and custom columns, we can define the columns that are returned.  This can then be used in an email.

     

    If you've got any more questions please let me know.  I hope this helps.

     

    Ali B

     

     

  • DonnaW Profile Picture
    22 on at

    This is GREAT @AliB365 ! Thank you! 
    Is there any way to filter the emails based on one of the values in the table? For example, if the Image Tags contain "Academy" send to person A, and if the Image Tags contain "Knowledge Base" send to person B. 

  • DonnaW Profile Picture
    22 on at

    Thanks @AliB365 To add to my other reply... Or to put it better, how do I add an additional Filter Query value or condition, to only include items that contain "Academy" in the Image Tags ?
    I tried modifying the Get Files (properties only) to 

    (Modified gt '@{formatDateTime(adddays(utcNow(),-7),'yyyy-MM-dd')}') and (MediaServiceImageTags gt 'Academy')
    And it didn't work even though the flow checker said it was okay. I've also tried adding a condition in different parts of the workflow and nothing seems to be working. 

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard