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 / Send email with Options
Power Apps
Unanswered

Send email with Options

(0) ShareShare
ReportReport
Posted on by 205
Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @TerrificTerri,

     

    Could you please share more details about your questions here?

    If you would like to send Email within PowerApps, you could either take use of the Office 365 Outlook connection:

    Office 365 Outlook in PowerApps

     

    Or consider add a Flow within PowerApps, then Send the Email through Microsoft Flow:

    Start a flow in PowerApps

    Send Email in Microsoft Flow   (Templates)

     

    Regards,

    Michael

  • Palak Profile Picture
    31 on at

    Hi @v-micsh-msft, I'm trying to send an email with options from PowerApps. How do you use Office365.SendMailWithOptions? Can you give an example? I tried searching all over the internet but couldn't find an example of how to get this working.

  • TerrificTerri Profile Picture
    205 on at

    I currently have been very successful using send email with options using regular outlook (not 365 due to not all people getting the email are within the group).  Here is a picture of the flow information.  Be sure that the "use only HTML message" is marked Yes.  The responses are captured using the Update Item command in Flow.  

     

     

    Capture1.JPG
    Capture.JPG
  • Palak Profile Picture
    31 on at

    I was wondering if I can send email with options directly from PowerApps without using Flow. I see an option there using Office365 connector (see attached), but just can't figure out build the 'Message' parrameter.

     

    Syntax:

    Office365.SendMailWithOptions(Message, {NotificationUrl:Text})

    PowerApps - SendMailWithOptions.JPG
  • TerrificTerri Profile Picture
    205 on at

    From your picture, in the command box is "Office365.SendMailWithOptions" - the dialog box just above it is "SendMailWithOptions(Message, ...).  Message denotes that it is asking for the message to be sent.  Continue to follow these prompts for clues to get the value. I would place in the PowerApp a text box for the message to be included and name it "Message Body" - the text box then would be referenced in the parameters.  Something close to 

    Office365.SendMailWithOptions(txtMessageBody.Text, etc.). 

     

    Also Shane Young has a great video addressing this issue.  His videos are extremely helpful, short, and to the point.

     

    https://www.youtube.com/watch?v=DF4KX1oSrVI

    https://www.youtube.com/watch?v=V3feURQfY3M

     

  • Palak Profile Picture
    31 on at

    Hi @TerrificTerri, thanks for your reply. I watched a few Shane Yong's videos but couldn't find my answer.

    'Message' parrameter is not accepting a text value. I'm getting below error. I assume I need to build a 'Message' using all the required email fields like To, Subject, Body, etc.

     

    Invalid argument type (Text). Expecting a Record value instead.

     

    I found below link from internet which gives some details on which parrameters are required to send email with options but is not helping me to build the Message in correct format.

    https://www.carlosag.net/PowerApps/Connectors/Office-365-Outlook#_Toc59CCE79ESendMailWithOptions

  • TerrificTerri Profile Picture
    205 on at

    Any specific reason why you dont want to use Flow?  I choose to use Flow because I was not able to record responses without Flow.  That might be something to consider, if you need the responses.  Sorry I am not of more help.

  • Palak Profile Picture
    31 on at

    Flow has certain limitations. It can't go back to previous step.

    For e.g.  Requester submits form to his/her manager for approval. Manager wants the requester to make few changes to the form and send the the form back to requester with details of requested changes. Requester makes the required changes and re-submits the form for approval. This loop can occur a few times until the form is approved and Flow doesn't have capabalities at the moment to handle such situation. Correct me if I'm wrong.

     

  • vwyankee Profile Picture
    360 on at

    I, too, am quite curious on using the Power Apps connector for this and possibly the SendApprovalMail option but don't know what to do with the parameters like NotificationURL in place of where the To: would normally reside.

    vwyankee_0-1595369538144.png

     

    I stumbled across the same reference site as the only thing out there and nothing helpful. 

     

    I'm really surprised I can't find any other inquiries of the same outside of this. The reason for using it directly in Power Apps vs flow? Well, once you've started using the "Office365Outlook.SendEmail" (V2) you realize it's a lot easier than creating a Flow, especially if you're going to have a dozen or so different emails to setup. It's also one less product to integrate in the solution.

     

    My gut tells me these are either not usable yet or you have to build a Flow and put in parameters that reference that Flow so that it is what actually runs. All that said, if both SendApprovalMail and SendMailWithOptions do the exact same thing and have the same limited options as Flow I would still be left missing a piece of the puzzle for my requirement of allowing the approver to approve and send to another approver of their choice (connected to an AD people picker.

  • Atngocnguyen Profile Picture
    39 on at

    @vwyankee 

    Hi, I make like that but not working. Is there any mistake?

    Office365Outlook.SendMailWithOptions("thanhngoc.nguyen@vn.panasonic.com",
    {
    To:"johndoe@domain.ca",
    Subject: "This Is My Options Email Title",
    Options: "Option1,Option2,Option3",
    HeaderText:"Header Text",
    SelectionText:"Selection text",
    Body: "This is the message you want to send",
    Importance:"Low",
    Name:Blank(),
    ContentBytes=0
    UseOnlyHTMLMessage:true,
    ShowHTMLConfirmationDialog=true,
    HideMicrosoftFooter =true
    HideHTMLMessage:true
    }
    )

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard