IvaSoft logo

SendEmailWithVotingButtons flow

Email IvaSoft
IvaSoft Power Automate Flows logo
Updated:
9 December 2025

Purpose

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

Outlook: Email showing Approve and Reject voting buttons

Installation

  1. Open Power Automate and create the "Office 365 Users" connection (if you do not have it yet):
    Power Automate: Office 365 Users connection configuration
  2. Create a new instant cloud flow named SendEmailWithVotingButtons, select "Manually trigger a flow," and click "Create".
    Power Automate: Create instant cloud flow with manual trigger
  3. 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.
    Power Automate: Compose Settings action configuration
  4. 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"
        }
      ]
    }

    Power Automate: Compose Email action configuration
  5. 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}

    Power Automate: Send an HTTP request action configuration
  6. Save the flow.
  7. Turn on the flow.
    Turning 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.

Outlook: Received email with Approve and Reject voting 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.

PayPro Global logo
One Support Unit Price: $35.00
Order via PayPro Global  ORDER