cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AGaudioASG
Helper II
Helper II

isHTML: True - missing parameters

Trying to send an HTML email from powerapps and I keep getting the "unsupported function" error.

 

My  Powerapps is also not recognizing "SendEmailHTML.Run" either

 

The email needs to contain local data.

 

How can I send an HTML formatted email if these commands are not working?

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

@AGaudioASG

There is no need to run a flow, you can try to use Office365Outlook.SendEmailV2 directly to send an HTML email.

Please try this:

1. Add office365Outlook connection

2. Save the Html text to a variable, and then add it into the Office365Outlook.SendEmailV2 function.

 

Set(VarHtmlText, "<!DOCTYPE html>
<html>
<head>
<title> Page Title </title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph</p>
</body>
</html>");
Office365Outlook.SendEmailV2("Test@test.com","Test Email",VarHtmlText)

 

Snipaste_2020-01-15_11-00-29.png

Sik

View solution in original post

6 REPLIES 6
EricLott
Super User
Super User

Is SendEmailHTML a Flow? I don't recognize that. You can use the Outlook connector to send HTML emails as well.2020-01-13 11_24_40-Inventory Tracking - Saved (Unpublished) - Power Apps.png

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

SendEmailHTML.Run was a solution I found in an older post. I could use Flow for HTML emails but the Local data from the app would not populate.

 

Is there a way to connect the app data to the Flow email?

Here's an example on how to send an HTML email using the Outlook connector.

Office365Outlook.SendEmailV2(User().Email,"This is a test!","<h3>test</h3>")

If you wanted to include variables or control values, you can do things like this:

Office365Outlook.SendEmailV2(User().Email,"This is a test!",TextInput1.Text)

 ---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

Eelman
Super User
Super User

Pretty sure this function has been deprecated and you need to use V3 now?

https://docs.microsoft.com/en-us/connectors/sendmail/#send-an-email-notification-[deprecated]

In V3 there's no need to use isHtml: true.

I recently changed my Outlook Send emails functions to V2 for these reasons and it would seem that the functions now recognise is HTML is required, ie no need to specify it.
rebeccas
Super User
Super User

You don't have to tell it IsHTML:true anymore. It will know if it is html. Just put it your text in correct format using the HTML text found under the Text section and then refer to that in the Send Email and it will know it is HTML and should format accordingly for it.

v-siky-msft
Community Support
Community Support

@AGaudioASG

There is no need to run a flow, you can try to use Office365Outlook.SendEmailV2 directly to send an HTML email.

Please try this:

1. Add office365Outlook connection

2. Save the Html text to a variable, and then add it into the Office365Outlook.SendEmailV2 function.

 

Set(VarHtmlText, "<!DOCTYPE html>
<html>
<head>
<title> Page Title </title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph</p>
</body>
</html>");
Office365Outlook.SendEmailV2("Test@test.com","Test Email",VarHtmlText)

 

Snipaste_2020-01-15_11-00-29.png

Sik

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (77,494)