cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver II
Resolver II

Send email with Options

 
9 REPLIES 9
Highlighted
Community Support
Community Support

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted

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.

Highlighted

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.  

 

 

Highlighted

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})

Highlighted

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

 

Highlighted

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

Highlighted

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.

Highlighted

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.

 

Highlighted

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (3,154)