web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show your HTML text here
Power Apps
Answered

Show your HTML text here

(0) ShareShare
ReportReport
Posted on by

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!

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at
    Check this post
    https://powerusers.microsoft.com/t5/Using-Flows/HTML-Email-body-shows-Show-your-HTML-text-here/m-p/360199


    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • Community Power Platform Member Profile Picture
    on at

    We are not using flows, only a canvas.  Is there a way to fix it for canvas?  Thanks!

  • EvanTse Profile Picture
    118 on at

    Are you able to share the code?

     

    it looks like it is picking up the text from a html control

  • Community Power Platform Member Profile Picture
    on at

    Code is attached in txt file

  • EvanTse Profile Picture
    118 on at

    This looks like the code on the HTML text control, are you also able to share the code on the button that sends the email?

  • Community Power Platform Member Profile Picture
    on at

    Additional code attached

  • EvanTse Profile Picture
    118 on at

    Thanks for sharing but it looks like we need to go a bit further with this one.

    Can you please share the code that actually sends out the email?

  • Community Power Platform Member Profile Picture
    on at

    code attached

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Please check if you have referenced proper Html Text value within the Body field of the Office365Outlook.SendEmail() function.

     

    Please also consider take a try with the following workaround:

    Modify your send email formula 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) // 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))
    

    Please take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard