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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365Outlook.SendE...
Power Apps
Answered

Office365Outlook.SendEmailV2() insert html code

(0) ShareShare
ReportReport
Posted on by 116

Hello guys,

 

I'm using the sendemailv2 flow in PowerApps. Is there any way I can import this HTML Code in an Email using this flow?

 

<!DOCTYPE html>
<html>
<body>

<p>Click on the button to copy the text from the text field. Try to paste the text (e.g. ctrl+v) afterwards in a different window, to see the effect.</p>

<input type="text" value="Hello World" id="myInput">
<button onclick="myFunction()">Copy text</button>

<script>
function myFunction() {
// Get the text field
var copyText = document.getElementById("myInput");

// Select the text field
copyText.select();
copyText.setSelectionRange(0, 99999); // For mobile devices

// Copy the text inside the text field
navigator.clipboard.writeText(copyText.value);

// Alert the copied text
alert("Copied the text: " + copyText.value);
}
</script>

</body>
</html>

 

 

 

 

 

 

 

 

 

Thanks for the answer!!

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Cedric0404 ,

     

    Please try:

    Office365Outlook.SendEmail(
    User().Email,
    "Subject",
    "<!DOCTYPE html>
    <html>
    <body>
    
    <p>Click on the button to copy the text from the text field. Try to paste the text (e.g. ctrl+v) afterwards in a different window, to see the effect.</p>
    
    <input type=""text"" value=""Hello World"" id=""myInput"">
    <button onclick=""myFunction()"">Copy text</button>
    
    <script>
    function myFunction() {
    // Get the text field
    var copyText = document.getElementById(""myInput"");
    
    // Select the text field
    copyText.select();
    copyText.setSelectionRange(0, 99999); // For mobile devices
    
    // Copy the text inside the text field
    navigator.clipboard.writeText(copyText.value);
    
    // Alert the copied text
    alert(""Copied the text: "" + copyText.value);
    }
    </script>
    
    </body>
    </html>",{IsHtml:true})

     

    Best Regards,

    Bof

     

  • Cedric0404 Profile Picture
    116 on at

    Hi, thanks for the answer! Sadly it doesn't really work for me. I'm just receiving an normal mail without the button.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard