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
Solved! Go to Solution.
Hi @pasquale_p
You could do something like the following:
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
Hi @pasquale_p
You could do something like the following:
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