cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
8BitWarrior
Level: Powered On

What is the syntax for the SendMailWithOptions operation in PowerApps (Office365Outlook Connector)?

I am trying to use the SendMailWithOptions operation in PowerApps and I cannot find any resource that explains what the actual syntax is. What is the syntax?

This resource is severely lacking in useful information:
https://docs.microsoft.com/en-us/connectors/office365/#send-email-with-options


2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: What is the syntax for the SendMailWithOptions operation in PowerApps (Office365Outlook Connector)?

@8BitWarrior 

See my example below.

 

Office365Outlook(
    "johndoe@xyzcompany.com",
    {
        Subject: "This Is My Options Email Title"
        Body: "This is the message you want to send",
        Options: "Option1,Option2,Option3"
    )
)

 

Here's the original documentation.  The required arguments always get passed in order (when there are multiple) and the optional argument are passed in a JSON.

 

Untitled.png

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

8BitWarrior
Level: Powered On

Re: What is the syntax for the SendMailWithOptions operation in PowerApps (Office365Outlook Connector)?

@mdevaney   - Thanks for that! It helped me down the right path.

For anyone else looking at this post - this is the minimum amount of required information in order to get this operation to work:

Office365Outlook.SendMailWithOptions(
   "https://www.google.ca",
     {
         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",
         Attachments:Blank(),
         UseOnlyHTMLMessage:true
      }
)

Still not sure what the purpose of the "NotificationURL" is but you cannot send this message without it


Email Body Output:

 
 
 

View solution in original post

3 REPLIES 3
Super User
Super User

Re: What is the syntax for the SendMailWithOptions operation in PowerApps (Office365Outlook Connector)?

@8BitWarrior 

See my example below.

 

Office365Outlook(
    "johndoe@xyzcompany.com",
    {
        Subject: "This Is My Options Email Title"
        Body: "This is the message you want to send",
        Options: "Option1,Option2,Option3"
    )
)

 

Here's the original documentation.  The required arguments always get passed in order (when there are multiple) and the optional argument are passed in a JSON.

 

Untitled.png

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

8BitWarrior
Level: Powered On

Re: What is the syntax for the SendMailWithOptions operation in PowerApps (Office365Outlook Connector)?

@mdevaney   - Thanks for that! It helped me down the right path.

For anyone else looking at this post - this is the minimum amount of required information in order to get this operation to work:

Office365Outlook.SendMailWithOptions(
   "https://www.google.ca",
     {
         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",
         Attachments:Blank(),
         UseOnlyHTMLMessage:true
      }
)

Still not sure what the purpose of the "NotificationURL" is but you cannot send this message without it


Email Body Output:

 
 
 

View solution in original post

8BitWarrior
Level: Powered On

Re: What is the syntax for the SendMailWithOptions operation in PowerApps (Office365Outlook Connector)?

Not sure why the image did save in the post. Here is the output example:

 

SendEmailWithOptions_Output_HTMLtrue.png

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,275)