Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Show HTML text here (only on first submission)

Problem: First email from PowerApps form is showing "Show HTML text here". The odd part is this is only happening on the first submission. Any other submissions go through as expected.

I've created a powerapps form for internal use. The form is basic requiring certain fields to be selected before a response can be sent. From there, I have conditions based on what is selected to send an email using "Office365Outlook.SendEmail". I made a separate page to draft the body of the email using an HTML textbox, and referencing them in the OnSelect property of Submit Button.


Below is the HTML body that is getting sent:


Below is OnSelect Submit Button:



Has anyone else had any issues with this and how can I fix? I was originally using Flow to send an email when a new item was created in sharepoint; however, the emails were coming from my own since I setup the flow with the submitter copied. I would prefer the powerapps option if I can get it to work 100% of the time! 

Please help!

Responsive Resident
Responsive Resident

@TheCalebG when a flow is configured with "standard trigger" (apart from Manual or Power Apps) all the actions inside the flow would be static. So, for you emails were sending from your account. If you want to go with a standard approach - you can use "send an email using shared mailbox" action to send emails from a shared mailbox action.


Regarding sending email from Power Apps - elaborate the issue you are facing "only on first submission"

Thanks for the quick response! The issue regarding emails coming from PowerApps - the email body is not coming through, only "Show your HTML text here." (example below). The issue seems to only occur on the first email sent, so some emails come through fine.



Hi @TheCalebG ,


I've had this issue, and my workaround is to save the HTML to the variable, and then apply the variable into Office365Outlook function.


Please try this.

If(DataCardValue3.Text= "Stand Off", Set(varHTML_standoff, "Your HTML Script"); Office365Outlook.SendEmail("Email", "Subject",varHTML_standoff, {isHtml:true}),

Hope this helps.

Not applicable

I tried this but it can't help, sorry

Not applicable

What I did was to copy the html scripts directly into the "onselect" setting for email button and it works. I know this may not be the most beautiful solution but it works for now.

"Office365Outlook.SendEmail(User().Email,"Your email subject", "Your HTML Scripts", {IsHtml: true})"

New Member

Dear @TheCalebG did you find a solution/work around?

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

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

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 (3,849)