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:
Here's my flow:
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?
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.
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.
What’s the Month_Year in your code?
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?
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)
Check out the News & Announcements to learn more.
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.