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

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

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,449)