In this article, I will explain how to send an email on button click from PowerApps through MSFlow. This article will help us in how to trigger a flow from PowerApps, passing dynamic values to Microsoft flows. I have divided this blog into mainly three subcategories and they are as mentioned below.
1- Creation of List
2- Creation of Power Apps
3- Creation of MS Flows
Step1: Creation of List
Step2: Creation of Power Apps
4. Once the list is created with these three columns then please create a PowerApps named “Email Notification”.
5. For creating Power Apps please click on “PowerApps” from ribbon and then click on “Create an app”
6. Now it will show as it is showing in the below-mentioned screenshot.
7. Now, add a button for sending the email. Please follow the steps (8 and 9) for adding the button.
8. Click on Insert from the Ribbon menu.
9. Then Click on Button (refer below screenshot).
10. Name the button on text property as “Notify”. (please refer below mentioned screenshot)
11. Now the setup is completed in the PowerApps.
Creation of MS Flow
12. Now Let’s create a MSFlow on the button (Notify) click.
13. Click on “Notify” Button.
14. Click on “Create a new flow” under Action (please refer below screenshot)
15. After clicking on “Create a new flow” it will just open the Data window. Then it will take you to the Flow Studio
16. Now click on the “Click a button in PowerApps to send an email”. (as shown below)
17. Now click on “Continue” button.
18. Now build the email with the details for Email, Subject, and Body. Then click on “Save” button.
19. Now, this new flow will show up as it has shown in below-mentioned screenshot.
20. Now click on the red cross mark showing in “Notify” button.
21. Then click on the “Edit in the formula bar” then it will show up the formula bar in top.
22. Now I have passed the Email, subject and body from the app as mentioned below:
BrowseGallery1.Selected.Email – parameter for email.
BrowseGallery1.Selected.Subject – parameter for subject.
BrowseGallery1.Selected.Body – parameter for body.
23. Now just save the app, publish and send the email on click.
In this blog, I have shown how to create PowerApps, create flows, trigger them from PowerApps, and pass the dynamic values to flows.
This solution is brought to you by our SharePoint professionals.
Softree Technology employs SharePoint consultants; we are a technology services provider with the aim to help companies achieve exceptional performance through SharePoint. Our dedicated team of SharePoint consultants has the right bent of mind to understand and execute customer requirements.
Be it SPFx or SharePoint add-in developments, SharePoint 2019 developments, web part developments, migrating from SharePoint 2010/2013 to SharePoint 2013/2016/Office 365, Office 365, SharePoint hosted apps development or something else in SharePoint, we strive to deliver the best