This flow sends an email with voting buttons Approve and Reject.

Installation


{
"RecipientAddress": "test1@contoso.com",
"Subject": "Test email with voting buttons ",
"PlainTextBody": "Just a test."
}
Modify the recipient address.

{
"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"
}
]
}

URI: https://graph.microsoft.com/v1.0/me/sendMail
Body: {"message": @{outputs('Compose_Email')}},"saveToSentItems": true"}


Testing
Run the flow. Make sure the message you have received conatins the Approve and Reject buttons.

The sample code included herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law.
Please understand that we do not provide free technical support for our code samples.
Price of support
If you need to get technical support, please buy at least one support unit and contact us. NO REFUND.