cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Building an flow to send out email with attachment but the attachment sent out is broken

Hello all,

 

As I am really new to Power Automate and also go through a lot of posts but still can't figure out why the attachment I sent out is broken.

 

Below are the screenshots of my current flow.

Generally speaking, I get attachment from the sharepoint list and initialize a new array variable. Then, I use get attachment content and append to array variable.

Lica_0-1623903004484.png

 

Lica_1-1623903080703.png

For the ContentBytes part, I have directly used dynamic content of Attachment Content from Get Attachment Content 3, but I can't even sent out the email and error message shows that "Parameter 'Attachment Content' cannot be null or empty."
So now, I change it to use expression as body('Get_attachment_content_3')?['$content'] and can finally send out email, but the email attachment received is broken (please see below screenshot and sorry it is in Chinese but it simply shows that it is unable to open the file because it is broken).
Lica_3-1623903740394.png

 


 

 

Appreciate if someone can help me with this issue. Thank you very much.

1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Microsoft
Microsoft

Hi @Anonymous 

According to your description, you want to send an email with attachments, but unsuccessful.

Does your file have content and can be opened normally?

You can try to re-edit the Value of Append to array variable and try again.

I tried to reproduce your scenario and it works fine for me.

This is my Flow in details:

vLilyWmsft_0-1623921830789.png

vLilyWmsft_1-1623921830795.jpeg

vLilyWmsft_2-1623921830800.png

When an item is modified with attachments

vLilyWmsft_3-1623921830801.jpeg

 

I will receive the email as below and the attachments can be opened normally.

vLilyWmsft_4-1623921830802.jpeg

For more info about Send multiple attachments on a single email you can refer to:

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

Hope the content above may help you.

Best Regards

View solution in original post

2 REPLIES 2
v-LilyW-msft
Microsoft
Microsoft

Hi @Anonymous 

According to your description, you want to send an email with attachments, but unsuccessful.

Does your file have content and can be opened normally?

You can try to re-edit the Value of Append to array variable and try again.

I tried to reproduce your scenario and it works fine for me.

This is my Flow in details:

vLilyWmsft_0-1623921830789.png

vLilyWmsft_1-1623921830795.jpeg

vLilyWmsft_2-1623921830800.png

When an item is modified with attachments

vLilyWmsft_3-1623921830801.jpeg

 

I will receive the email as below and the attachments can be opened normally.

vLilyWmsft_4-1623921830802.jpeg

For more info about Send multiple attachments on a single email you can refer to:

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

Hope the content above may help you.

Best Regards

View solution in original post

Anonymous
Not applicable

Hi @v-LilyW-msft ,

 

Thank you very much. It works now. 😁

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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,839)