cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FlorentP
Level: Powered On

Send custom Sharepoint File list every day

Hi,

Maybe it's easy but i can't figure out how to send the complete filelist in just one mail...

 

If i use that flow , i get a mail for each file in the list ...

flow2.PNG

If i use "Create HTML Table" , i get illegible mail like " ...table><thead><tr><th>Id</th><th>Name</th..."

 

I just want this :

File1 = modified today at 10:00

File2 = no update today

File3 = modified today at 9:00

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Send custom Sharepoint File list every day

@FlorentP 

What Send an Email Connector are you using?

If you are using the old connector (not V2), then you need to click on "Show advanced options" and set "Is HTML" to yes.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Send custom Sharepoint File list every day

@FlorentP 

What Send an Email Connector are you using?

If you are using the old connector (not V2), then you need to click on "Show advanced options" and set "Is HTML" to yes.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Dual Super User
Dual Super User

Re: Send custom Sharepoint File list every day

Hi @FlorentP 

 

Your issue is you are using the send email action inside of the for loop

 

first create an array variable 

then inside for loop append to array variable - here you can add your fil1 modified or no update

 

after for loop you have all results in the array

 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

FlorentP
Level: Powered On

Re: Send custom Sharepoint File list every day

That's right thank you Scott

Here's the final result:

flow2.PNG

 

expression for last_update = 

if(equals(formatDateTime(item()?['LastModified'],'yyyy-MM-dd'),formatDateTime(utcNow(),'yyyy-MM-dd')),'Update OK','No change')

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,934)