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

Help with automated mails with attachment

Hi all,

 

I was wondering if anyone could help me with the below.

I want to create a flow triggered with a button to send out an automated mail to certain persons with an attachment.

The problem is that there is a file attached, but the files become corrupt. I was hoping someone could help me out to attach a correct file.

 

So i came up with the following:

I first locate the file i want to attach with the "Find files in folder" action.

Find files in folder.png

This gives me the correct file in the output. so that part at least works.

 

After that i set up the automated email:

Email.png

 

The output looks like it worked. The email was sent perfectly and there was an excel file attached with the same name as the original file. The only thing is, is that every attachment is corrupt.

 

WHO CAN HELP? 🙂 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User III
Super User III

hi @MVB1  is becaouse you are using mediatype ane you need content type from onedrive

 

conet.png



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Highlighted

Hi @MVB1,

 

It seems like you want to multiple files as attachments in the Email, right?

There are many posts about how to convert files into attachments in community,  you could refer to them firstly:

https://powerusers.microsoft.com/t5/General-Power-Automate/Multiple-Attchments-in-one-email-flow/m-p...

 

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

 

Best Regards,
Community Support Team _ Lin Tu
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

5 REPLIES 5
Highlighted
Super User III
Super User III

hi @MVB1  is becaouse you are using mediatype ane you need content type from onedrive

 

conet.png



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Highlighted

Hi @ChristianAbata,

 

Thanks for the quick help! Any idea how i can get the content type for that?

Currently it's not an option for me.

 

Content.png

Highlighted

Sure @MVB1  you need to add get file content and pass the id file identifier.

cont.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted

Hi @ChristianAbata,

 

Sorry, i'm still pretty new with Power Automate, so perhaps i ask a lot of newbie questions.

 

I've added in the get file content, which automatically went in an "Apply to each", but i still have no File Content as an option for the attachment. I also can't select this "Apply to each" as an output to be used in the mail.

 

Content 2.png

Highlighted

Hi @MVB1,

 

It seems like you want to multiple files as attachments in the Email, right?

There are many posts about how to convert files into attachments in community,  you could refer to them firstly:

https://powerusers.microsoft.com/t5/General-Power-Automate/Multiple-Attchments-in-one-email-flow/m-p...

 

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

 

Best Regards,
Community Support Team _ Lin Tu
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (11,813)