cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mdemarici
Frequent Visitor

Generate a daily summary of new, specific uploads to a Doc Library

Hi All, 

 

I've been trying to build a flow that gets all files uploaded to a document library in a 24 hour period, filters it for specific text in the file name like".Client2" at the end of the file name, builds an HTML table that lists all the new files with that certain text in the name, then sends a daily email with the table. 

 

I think I am stuck on the filter array part to get only the files uploaded between "now" and the last time the flow ran. I found a question and answer on here that led me to do the below, but it's not working. Does anyone have experience with this and can guide me to a solution?

 

Capturerr.JPG

 

 

Does the above filter, only query the files that were uploaded since the last run?

I found this here https://powerusers.microsoft.com/t5/General-Power-Automate/Create-Daily-Summary-of-Files-Uploaded-to... but I cannot get it to work.

 

Rest of the flow is pictured below.

Capturerth.JPG

 

I have not even tried to filter for the specific text at the end yet because I seemingly cannot get past getting new files and building a table with them. as you can see the output is blank below.  

 

Capturegeregedgedg.JPG

 

I'm basically trying to get this flow to work but cannot for some reason. Also the Send an Email (V2) does not have an isHTML? at the bottom in advanced mode. 

 

Please help!

 

Thank you for reading!

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @mdemarici ,

 

At what time of day will Flow run? No new file is created when getting the current operation, so the body of the Filter array is empty.

 

You can try to update the filter criteria:

@equals(formatDateTime(item()['Created'], 'yyyy-MM-dd'), addDays(utcNow(), -1, 'yyyy-MM-dd'))

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

Hi @mdemarici ,

 

At what time of day will Flow run? No new file is created when getting the current operation, so the body of the Filter array is empty.

 

You can try to update the filter criteria:

@equals(formatDateTime(item()['Created'], 'yyyy-MM-dd'), addDays(utcNow(), -1, 'yyyy-MM-dd'))

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,914)