Updated:
9 December 2025
Purpose
This flow sends an email with voting buttons Approve and Reject.

Installation
- Open Power Automate and create the "Office 365 Users" connection (if you do not have it yet):
- Create a new instant cloud flow named
SendEmailWithVotingButtons, select "Manually trigger a flow," and click "Create".
- Create a Compose action and name it Compose Settings. Place the following code there:
{ "RecipientAddress": "test1@contoso.com", "Subject": "Test email with voting buttons", "PlainTextBody": "Just a test." }Modify the recipient address.
- Create a Compose action and name it Compose Email. Place the following code there:
{ "body": { "contentType": "Text", "content": "@{outputs('Compose_Settings')?['PlainTextBody']}" }, "subject": "@{outputs('Compose_Settings')?['Subject']}", "toRecipients": [ { "emailAddress": { "address": "@{outputs('Compose_Settings')?['RecipientAddress']}" } } ], "singleValueExtendedProperties": [ { "id": "BINARY {00062008-0000-0000-C000-000000000046} Id 0x8520", "value": "AgEGAAAAAAAAAAVSZXBseQhJUE0uTm90ZQdNZXNzYWdlAlJFBQAAAAAAAAAAAAAAAAAAAAACAAAAZgAAAAIAAAABAAAADFJlcGx5IHRvIEFsbAhJUE0uTm90ZQdNZXNzYWdlAlJFBQAAAAAAAAAAAAAAAAAAAAACAAAAZwAAAAMAAAACAAAAB0ZvcndhcmQISVBNLk5vdGUHTWVzc2FnZQJGVwUAAAAAAAAAAAAAAAAAAAAAAgAAAGgAAAAEAAAAAwAAAA9SZXBseSB0byBGb2xkZXIISVBNLlBvc3QEUG9zdAAFAAAAAAAAAAAAAAAAAAAAAAIAAABsAAAACAAAAAQAAAAHQXBwcm92ZQhJUE0uTm90ZQAHQXBwcm92ZQAAAAAAAAAAAAEAAAABAAAAAgAAAAEAAAD/////BAAAAAZSZWplY3QISVBNLk5vdGUABlJlamVjdAAAAAAAAAAAAAEAAAACAAAAAgAAAAIAAAD/////BAEFUgBlAHAAbAB5AAJSAEUADFIAZQBwAGwAeQAgAHQAbwAgAEEAbABsAAJSAEUAB0YAbwByAHcAYQByAGQAAkYAVwAPUgBlAHAAbAB5ACAAdABvACAARgBvAGwAZABlAHIAAAdBAHAAcAByAG8AdgBlAAdBAHAAcAByAG8AdgBlAAZSAGUAagBlAGMAdAAGUgBlAGoAZQBjAHQA" }, { "id": "STRING 0X1A", "value": "IPM.Note.Microsoft.Approval.Request" } ] }
- Create a Send an HTTP request action of the "Office 365 Users" connector. Use the following configuration:
URI: https://graph.microsoft.com/v1.0/me/sendMail Body: {"message": @{outputs('Compose_Email')},"saveToSentItems": true}
- Save the flow.
- Turn on the flow.

Testing
Run the flow. After the flow runs, verify that the recipient has received a message containing the Approve and Reject buttons.

Code Sample Notice
The sample code is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. We do not provide technical support for our code samples.
Support Pricing
If you require technical support, purchase at least one support unit and contact us. Support units are non-refundable.
One Support Unit Price: $35.00
