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

Send email with pdf attachment of HTML text

Hello Team,

 

I am using flow for my application in powerapps to send an email with attachment to the user. I am getting following error in workflow:

Send email error.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Here's my flow:

Send email WorkFlow.PNG

 

And here's my formula in powerapps:

TimeSheet_Week16.Run(Office365Users.MyProfile().Mail,Month_Year,"Hello,Please find attached for monthly timesheet. Thanks,",HtmlText1.HtmlText,Month_Year)

 

Can someone help me on this please?

 

Kind regards,

Naga

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: Send email with pdf attachment of HTML text

Hi Nagaviswanath,

 

I guess that you are getting the Attachment Content from a PDF viewer control. I can reproduce the error message when I try to get the Attachment Content from a PDF viewer.

 

If I configure the function as 'manual->Sendanemail'.Run(Office365Users.MyProfile().Mail,"subject","HelloEmailBody","test",PdfViewer1.CurrentFindText). I would get the following error message when I run the flow.

 

I am afraid that the context from PDF viewer has not been supported yet.

3.PNG

 

While if I configure the function as 'manual->Sendanemail'.Run(Office365Users.MyProfile().Mail,"subject","HelloEmailBody","test",HtmlText1.HtmlText). The flow would run succeed but seems that flow cannot validate the content from the HTML URL.

4.PNG

 

What’s the Month_Year in your code?

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Send email with pdf attachment of HTML text

Hello @v-yamao-msft

 

Month_year is the value of the TextBox used in my application.

Can you let me know how to write basic code to write the contents of the attachment. And also would you please let me know how to set the file extension of the attachment like PDF or XLSX etc?

 

Kind regards,

Naga

 

Re: Send email with pdf attachment of HTML text

Hello @v-yamao-msft

 

I am using the HTML text to get into Attachment to send email. Here's my formula:

TimeSheet_Application.Run(Office365Users.MyProfile().Mail,Month_Year,"Hello,Please find attached for monthly timesheet. Thanks,",Month_Year,HtmlText1.HtmlText)

 

Kind regards,

Naga

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 114 members 3,925 guests
Please welcome our newest community members: