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?
- Automate email notifications
- Trigger approval workflows
- Reduce manual communication
- Improve business efficiency
- Integrate with Microsoft 365 services
Step 1: Create a Power Automate Flow
- Open Power Automate.
- Create an Instant Cloud Flow.
- Select Power Apps (V2) as the trigger.
- Add required input parameters.
- 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
- Open your Canvas App.
- Select Action menu.
- Choose Power Automate.
- Select the flow you created.
- 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
- Approval notifications
- Employee requests
- Leave management systems
- Purchase requests
- Customer feedback forms
- Incident reporting applications
Benefits
- Real-time email notifications
- Improved business communication
- Automated processes
- Easy Power Platform integration
- Reduced manual effort
Key Takeaways
- Power Apps can trigger Power Automate flows using button clicks.
- Email notifications can be automated instantly.
- Dynamic values can be passed from app controls.
- Power Automate handles the email delivery process.
- Ideal for approvals and business notifications.