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

Get all .xlsm files from a folder on sharepoint

I'm doing a project, and I'd like to automate it, I'd like to know a way to fetch all exel files, without having to "get file content" for each one, because if you add another exel file or rename it It will not return anything.

 

 

What I'm doing is: Every week (Tuesday) he sends the update of the files from sharepoint to outlook email. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-zhos-msft
Level 10

Re: Get all .xlsm files from a folder on sharepoint

Hi @FJSF ,

You want to get all .xlsm files from SharePoint, then send them to outlook email. 

I have made a test on my side, please take a try with the following workaround:

The expression of ContentBytes as below:

body('Get_file_content')?['$Content']

Capture.PNGCapture1.PNGCapture3.PNG

The email would be sent with attachment as below:

Capture2.PNG

You could also refer to link below to learn send an email with multiple attachments:

https://preview.flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

 

Best Regards,

Community Support Team _ Zhongys

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-zhos-msft
Level 10

Re: Get all .xlsm files from a folder on sharepoint

Hi @FJSF ,

You want to get all .xlsm files from SharePoint, then send them to outlook email. 

I have made a test on my side, please take a try with the following workaround:

The expression of ContentBytes as below:

body('Get_file_content')?['$Content']

Capture.PNGCapture1.PNGCapture3.PNG

The email would be sent with attachment as below:

Capture2.PNG

You could also refer to link below to learn send an email with multiple attachments:

https://preview.flow.microsoft.com/en-us/blog/multiple-attachments-single-email/

 

Best Regards,

Community Support Team _ Zhongys

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
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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Kudoed Authors (Last 30 Days)
Users online (4,207)