cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Raeville
Level: Powered On

trigger flow from a button in PowerApps - how to populate details?

Hi,

 

I created a button called "Close" in PowerApps. I would like to close the form and trigger a flow when the button is selected.

 

In the flow, i would like to inform the requestor that the request has been closed with some details of the form submitted earlier. The PowerApps is connected to a Sharepoint list. 

 

In the body of the email, how do i add field values into the email body from the SharePoint list  as well as get the requestor email? 

 

PowerAppsFlow.png

 

What is Sendanemail_to? How do i get the requestor's email or Author email? 

 

Thanks. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dawidvh
Level 10

Re: trigger flow from a button in PowerApps - how to populate details?

Hi Raeville,

 

a) In Flow, set a variable for record_id, and choose the "ask in PowerApps" option.

b) The above will allow you to pass the sharepoint record ID to Flow at the time of calling it.

c) In Flow, you can now use SharePoint\get item, and use the row ID to get the data record you are working with, to get and set information in the data record.

 

Let me know if you don't come right.

4 REPLIES 4
Dawidvh
Level 10

Re: trigger flow from a button in PowerApps - how to populate details?

Hi Raeville,

 

a) In Flow, set a variable for record_id, and choose the "ask in PowerApps" option.

b) The above will allow you to pass the sharepoint record ID to Flow at the time of calling it.

c) In Flow, you can now use SharePoint\get item, and use the row ID to get the data record you are working with, to get and set information in the data record.

 

Let me know if you don't come right.

Community Support Team
Community Support Team

Re: trigger flow from a button in PowerApps - how to populate details?

Hi @Raeville,

 

Please refer to Start a flow in an app

https://docs.microsoft.com/en-us/powerapps/using-logic-flows

 

After have one Ask in PowerApps parameter for each field you inserted in Flow. You will need to assign contents from PowerApps to these 2 parameter. For example, if you want the email To field to be the text you put into the TextInput1 control, and Body field to be the text in the Label1 control, lthen the OnSelect property of the button to trigger the flow should be:

‘FlowName’.Run(TextInput1.Text, Label1.Text)

 Capture.PNG

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AlesonITC
Level: Powered On

Re: trigger flow from a button in PowerApps - how to populate details?

 
pedro_maitan
Level: Power Up

Re: trigger flow from a button in PowerApps - how to populate details?

Error

 

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 150 members 4,096 guests
Please welcome our newest community members: