How to Trigger Flow Email on Button Click in PowerApps

How to Trigger Flow Email on Button Click in PowerApps

Power Apps and Power Automate work together to create powerful business automation solutions. One of the most common requirements is sending an email when a user clicks a button inside a Power Apps application.

By integrating Power Automate with Power Apps, users can trigger email notifications, approval requests, status updates, and business alerts directly from the application interface.

Business Scenario

Suppose a manager submits a request through Power Apps and wants an email notification sent automatically to the approval team when the Submit button is clicked.

Why Use Power Automate with Power Apps?

Step 1: Create a Power Automate Flow

  1. Open Power Automate.
  2. Create an Instant Cloud Flow.
  3. Select Power Apps (V2) as the trigger.
  4. Add required input parameters.
  5. Add the Send an Email (V2) action.

Step 2: Configure Email Action

To:
manager@company.com

Subject:
Request Submitted

Body:
A new request has been submitted
from Power Apps.

Step 3: Add Flow to Power Apps

  1. Open your Canvas App.
  2. Select Action menu.
  3. Choose Power Automate.
  4. Select the flow you created.
  5. The flow becomes available inside Power Apps.

Step 4: Trigger Flow from Button

Use the following formula inside the button's OnSelect property.

SendEmailFlow.Run(
    User().FullName,
    User().Email
)

Pass Dynamic Values

You can pass values from controls directly to the flow.

SendEmailFlow.Run(
    txtEmployee.Text,
    txtEmail.Text,
    txtComments.Text
)

Display Success Message

Notify(
   "Email Sent Successfully",
   NotificationType.Success
)
Important: Ensure the Power Automate flow is shared with users who will execute the Power Apps application, otherwise the flow may fail to run.

Common Use Cases

Benefits

Key Takeaways