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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Manual trigger - send ...
Power Automate
Unanswered

Manual trigger - send as attachments all files added to a SharePoint folder since the last time the flow ran

(0) ShareShare
ReportReport
Posted on by 37

Hi, i am creating a manual flow to send out an email with multiple attachments.

 

The attachments have to meet 2 criteria: 

- they were added to SharePoint since the last time the flow ran and

- file name must contain the word "Report

 

I know how to create a flow that send multiple attachments and to filter based on file names, however i am very stuck on the first step. I don't know how to make the flow only look at the documents added to SP since the last time the flow was triggered. 

 

Appreciate the help. 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,099 Moderator on at

    Hi @Mirela_Raducanu 

     

    One possible solution, you may create a custom SharePoint list (lets say, FlowRunHistory) and save the last successful run time of the flow. Next time, whenever you run the flow just lookup the last run time and apply the filter accordingly to get the files or list items.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Mirela_Raducanu Profile Picture
    37 on at

    Hi @ManishSolanki. Thanks for the tip. Do you know what the syntax for the date filter is? Let's say that the last run was 30 days ago, what would be the syntax to run the flow today? Thank you. 

     

     

  • Manish Solanki Profile Picture
    15,099 Moderator on at

    Hi @Mirela_Raducanu 

     

    You need to write the below query in "Filter query" of "Get items" or get files action to get the files created in last 30 days:

    ManishSolanki_0-1693932158477.png

    Expression used for filtering past 30 days list items:

    Created ge '@{startOfDay(addDays(utcNow(),-30))}'

    You may replace utcNow() with the last run date time if you store it in custom list.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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
trice602 Profile Picture

trice602 239 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 177 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 97 Super User 2026 Season 1

Last 30 days Overall leaderboard