cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pasquale_p
Helper I
Helper I

SEND AN EMAIL FOR A GROUP OF FILES UPLOAD IN A SHAREPOINT FOLDER

Hi all, 

I am writing to get your help for a flow where I can't find a solution, 

 

I have a folder where upload different files (in specific folders FOLDER ) in a week, I need to receive an email (e.g. every 2 hrs) as summary for the files upload and not an email for each upload

 

structure of folders

MAIN FOLDER

--> FOLDER 1

-------> file1.docx

-------> file2.xlsx

--> FOLDER 2

 

how can I structure a flow where every two hours if there are new uploads in each folders sent an email to a specific person?

 

thanks for your support

greetings from Italy

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

Hi @pasquale_p 

You could do something like the following:

filelis.png

 

1) Schedule (every 2h)

2) Get current time minus 2h using the expression:

formatDateTime(addHours(utcNow(),-2),'yyyy-MM-dd')

3) Get files in all document library (no matter what the folder is) where Created dates is greater than 2h before current time.

4) For each file, append its file name to a string variable

5) Send an email with the content of the string variable

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

1 REPLY 1
fchopo
Super User
Super User

Hi @pasquale_p 

You could do something like the following:

filelis.png

 

1) Schedule (every 2h)

2) Get current time minus 2h using the expression:

formatDateTime(addHours(utcNow(),-2),'yyyy-MM-dd')

3) Get files in all document library (no matter what the folder is) where Created dates is greater than 2h before current time.

4) For each file, append its file name to a string variable

5) Send an email with the content of the string variable

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,332)