cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Pass data from PowerApps to MS Power Automate (Flow)

Dear Experts, 

 

In PowerApps I have created an App using the "Start with data" option and I have loaded a Sharepoint list as the data source. Now, each Sharepoint list row represents an item in the Gallery which can be clicked on and more data of each Sharepoint row is viewed (DetailScreen1).

 

Then I have added a Button to the DetailScreen1 and connected it with MS Flow. By clicking on this button I would like to launch MS Flow, that will be able to work with the data from selected DetailScreen1.

Is anybody able to advise how to pass the data from selected DetailsScreen1 to MS Flow? I have tried to use the Collection function, however it does not seem to be working. Can I even use collections in this case? From what I have seen till now, using Collections is applicable only when user is filling data, not selecting an item. 

 

Thank you in advance, 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@JozefVol 

There's an awesome tutorial put out by MS that you should check it.  It completely walks through the process step-by-step.  I'll link to it below.  A few tips specific to your situation are:

 

1.  Don't use a collection.  It's not necessary and it makes things harder.  Instead, create 7 variables in PowerApps (one for each of Req. Number, Job Title, Action, etc) and use 'Ask In PowerApps' to obtain the values.

 

2.  To pass the variables from PowerApps to Flow you would first need to connect it by going to the top menu in PowerApps Studio and clicking "Action" then "Power Automate".  Select your Flow then write some code like this in the OnSelect property of your submit button

 

Run.YourFlowName(
    DataCardValue_ReqNumber.Text,
    DataCardValue_JobTitle.Text,
    DataCardValue_Action.Text,
    DataCardValue_Process.Text,
    DataCardValue_Subprocess.Text,
    DataCardValue_Hiring Manager.Text,
    DataCardValue_JobGrade.Text
)

 

Link To Start A Flow In A Canvas App Tutorial.

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

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

1 REPLY 1
Super User III
Super User III

@JozefVol 

There's an awesome tutorial put out by MS that you should check it.  It completely walks through the process step-by-step.  I'll link to it below.  A few tips specific to your situation are:

 

1.  Don't use a collection.  It's not necessary and it makes things harder.  Instead, create 7 variables in PowerApps (one for each of Req. Number, Job Title, Action, etc) and use 'Ask In PowerApps' to obtain the values.

 

2.  To pass the variables from PowerApps to Flow you would first need to connect it by going to the top menu in PowerApps Studio and clicking "Action" then "Power Automate".  Select your Flow then write some code like this in the OnSelect property of your submit button

 

Run.YourFlowName(
    DataCardValue_ReqNumber.Text,
    DataCardValue_JobTitle.Text,
    DataCardValue_Action.Text,
    DataCardValue_Process.Text,
    DataCardValue_Subprocess.Text,
    DataCardValue_Hiring Manager.Text,
    DataCardValue_JobGrade.Text
)

 

Link To Start A Flow In A Canvas App Tutorial.

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

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (8,199)