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 / Problem using Office36...
Power Apps
Answered

Problem using Office365Outlook.SendEmail()

(0) ShareShare
ReportReport
Posted on by

I'm following an online course of building a PowerApp, and am stuck on the issue of sending a user an email. This is what the course provided for Syntax:

jharville_0-1600457466062.png

I put in the exact same code (while leaving out a few variables that weren't needed), but got these errors:

jharville_1-1600457525132.png

 

jharville_2-1600457547084.png

 

Would anyone know why it's throwing those two errors? Thank you!

 

(Here is the typed out version of my code that is erroring out):

 

 

 

Office365Outlook.SendEmail(popPeoplePicker.Selected.Mail, "Form routed to you! Hello " & popPeoplePicker.Selected.DisplayName & ",<p>A file has been sent to you for approval.<p>" & "<p>Sent from: " & varCurrentUser.FullName & "<p>" & popOptionalComments.Text, {IsHTML: true, Importance: "Normal"});

 

 

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    The second parameter for the SendEmail action in the Office365Outlook connector is the subject of the message. So if you change your expression to the following, it should work:

    Office365Outlook.SendEmail(
     popPeoplePicker.Selected.Mail,
     "<<the subject for your e-mail>>",
     "Form routed to you! Hello " &
     popPeoplePicker.Selected.DisplayName &
     ",<p>A file has been sent to you for approval.<p>" &
     "<p>Sent from: " &
     varCurrentUser.FullName &
     "<p>" & popOptionalComments.Text,
     {IsHTML: true, Importance: "Normal"});

    Hope this helps!

  • jharville Profile Picture
    on at

    Thank you so much, that was exactly the solution to the issue I was having. Thanks again 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard