cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
romsta
Frequent Visitor

Show your HTML text here

Intermittently, some users click on a button which does some validation and then if it passes validation, it sends an email containing all the data contained within that form, however some times they send an email with no body apart from "Show your HTML text here."

Is there any reason for this as it is very frustrating for the user base when it occurs?  If so, what are the possible solutions to stop this from happening in the future?  Thanks!

13 REPLIES 13

The majority of times it works fine, it is only sometimes that it doesn't work.  Are you able to advise what the format of the 'take a try' is?  I enter try but it is not recognised.  Thanks

Hey romsta,

The advice there was to see if you have any other code that sends the email and check which html text control they are referencing.

The code you provided seems to be fine so the assumption is that the issue is somewhere else

Hi @romsta ,

Please modify your Send Email formula in your app as below:

If(
   SG2Success="SaveDraft",Navigate(LandingDashboard);Notify("Project has been saved as draft.",NotificationType.Success),
   If(
       SG2Success="Submit",
       Office365Outlook.SendEmail(
                                  SG2SenstveBusOwnVal.Text,
                                  "Stage Gate 2 Submitted for Business Approval -"&SG2PrjNumbVal.Text&" -"&SG2PrjNameVal.Text,
                                   If(SG2EmailBodyApproval.HtmlText <> "Show your <b><font color=blue>HTML</font></b> text here.", SG2EmailBodyApproval.HtmlText) // Just modify formula here
                                  {
                                    IsHtml:true,
                                    Importance:Normal,
Attachments: AddColumns(RenameColumns(SG2AttachmentsVal.Attachments,"Value","ContentBytes"),"@odata.type","")});Patch('PM&R Tracker',First(Filter('PM&R Tracker',ProjectNumber=SG2PrjNumbVal.Text)),{ProjectStatus:LookUp(Choices('PM&R Tracker'.ProjectStatus),Value="Stage Gate 2 -Pending Business Owner Approval")});Navigate(LandingDashboard);Notify(SG2PrjNumbVal.Text & " has been submitted for approval –this form is now locked until a decision is actioned.",NotificationType.Success),Navigate(LandingDashboard))

 

Best regards,

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

I have (the same?) problem.

In design mode it sends mail well. But once you publish it, it is not sending what suppose to be in the HtmlText.

I tried both sendmail and sendmailV2 - did not work.

I tried putting the HTML code into the sendmail itself (not using it via HtmlText) - did not work.

There must be an issue within  office365outlook connector.

 

So, once again, it's not working in published mode, but works fine in edit mode.

How do we fix this?

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,875)