cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JozefVol
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
mdevaney
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
mdevaney
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (50,527)