cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
modernoddity
Helper III
Helper III

Attaching PDF to Email automatically

@Anonymous 

 

I am currently using a Flow to create a PDF from HTML produced within the app. I'm looking for a way to click a button and attach that PDF to an email from Powerapps. 

 

The button is currently set to: 

Launch("mailto:myemailaddress@outlook.com");

but I can't seem to find any documentation on how to attach the created PDF to the email automatically. 

Any suggestions? Is this even possible? 

1 ACCEPTED SOLUTION

Accepted Solutions
modernoddity
Helper III
Helper III

I found an article that said it was necessary to completely rebuild the Flow for it to be able to work again. This worked. I'm not sure why since it's identical to the other Flow but it's working now. Thanks for all the help 🙂

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

you could start the flow from within powerapps, this way you could send the email address as a variable to flow, then in the flow after the creation of the pdf you could add it as an attachment to your email.

So I tried to do this and during testing everything worked until it got to the email portion. I'm very new to Flows so I'm not sure what I'm doing wrong.... the email address will always be the same, the subject will always be the same, it's only the PDF that will change. 

 

Here is the current flow: 

1.png

2.png

It works great to this point. 

 

Here is what I attempted to add to it (this is where it fails): 

 

3.png

Anonymous
Not applicable

Does your file name also had the extension in it, like .Pdf?

Also you could make the email variable by giving a emailadress as a parameter grom powerapps, somewhere states "ask in powerapps"

@Anonymous 

 

Yes, the file name includes the file extension. 

v-yuxima-msft
Community Support
Community Support

Hi @modernoddity 

 

Do you want to send PDF by email?

https://clavinfernandes.wordpress.com/2018/04/13/convert-powerapps-data-to-pdf-and-send/

 

Best Regards.

Yumia

@v-yuxima-msft Yes, I want to send PDF by email but I'm not able to use the program in that tutorial. 

Hi, I see some similarities with my app when sending an image as an an attachment without the use of flow.

See this topic and change the image .jpg to .PDF and it might work!

https://powerusers.microsoft.com/t5/General-Discussion/send-image-via-email/td-p/103464

Let me know if this solution works, then I can make use of it when I'm trying to send emails with a pdf attachment. I'm interested in your 'pdf generator' 😉
modernoddity
Helper III
Helper III

I found an article that said it was necessary to completely rebuild the Flow for it to be able to work again. This worked. I'm not sure why since it's identical to the other Flow but it's working now. Thanks for all the help 🙂

rebeccas
Community Champion
Community Champion

@modernoddity 

 

Try following these notes. These will allow you send to multiple attachments on one email via Flow.

 

See attached.

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,730)