cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mansoor88
Helper I
Helper I

bug htmlText not available for selection and Email

Dear All,

 

I am trying to send a HTML mail, 

To do so I ve created the Hmtl text, and set the button 'onSelect

 

Office365Outlook.SendEmail("mailId"; "Subject" ; relatedScreen.HtmlText (missing)

 

i cant select when i Type the Html for the HtmlText?

 

any tips please?

 

Thanks for your help,

Regards

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Mansoor88 ,

Could you please share a bit more about the "ContactHtml" that you mentioned within your screenshot? Is it a Screen or a Html Text control?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. If you want to reference the HTML text content from the Html Text control, please use the following formula directly:

HtmlText1.HtmlText

7.JPG

Note: The HtmlText1 represents the Html text control in my app.

 

On your side, please consider modify your formula as below:

Office365Outlook.SendEmail("mailId"; "Subject" ; HtmlTextControl.HtmlText)

Please make sure you added a Html Text control in your app, then reference the proper control name within your Office365Outlook.SendEmail(...) function.

 

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.

View solution in original post

2 REPLIES 2
CarlosFigueira
Power Apps
Power Apps

Instead of trying to get the HtmlText from the related screen, you need to retrieve it from the control itself:

HtmlTextControl.gif

As shown above, you can find the control name in the tree view on the left side.

Hope this helps!

v-xida-msft
Community Support
Community Support

Hi @Mansoor88 ,

Could you please share a bit more about the "ContactHtml" that you mentioned within your screenshot? Is it a Screen or a Html Text control?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. If you want to reference the HTML text content from the Html Text control, please use the following formula directly:

HtmlText1.HtmlText

7.JPG

Note: The HtmlText1 represents the Html text control in my app.

 

On your side, please consider modify your formula as below:

Office365Outlook.SendEmail("mailId"; "Subject" ; HtmlTextControl.HtmlText)

Please make sure you added a Html Text control in your app, then reference the proper control name within your Office365Outlook.SendEmail(...) function.

 

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.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,432)