cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MVB1
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
ChristianAbata
Super User
Super User

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

v-litu-msft
Community Support
Community Support

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
ChristianAbata
Super User
Super User

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

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

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

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

v-litu-msft
Community Support
Community Support

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

Top Solution Authors
Users online (2,222)