cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TonDeli
New Member

How to pass PowerApps variables to flow?

I have created an application that is based on Sharepoint list. I'm filtering the list with application and showing the results based on two column values from the list (date and cost center). After selection I need to create .txt file based on that Sharepoint list and show only selected rows.

 

Here is the full working flow with manual steps:

 

01_Manual_flow.JPG

 

Here is the detailed view to "Get items" step:

 

02_Sharepoint_Get_items.JPG

 

Next step is to change the trigger to PowerApps and in "Compose" step to use "Ask in PowerApps" option. In "Get items" step I have used results from "Compose" step.

 

03_PowerApps_flow.JPG

 

I'm still not sure how my flow will work because I've not declared which columns I'm going to filter and what are the filtered values. In application I have a button with 'myflow'.Run() formula. I think that I need to add something to the brackets that will identify what selections I have made in my application and pass them to the flow.

 

Something like this:

'myflow'.Run(date='SelectDate'.Selected.date;costcenter='SelectCostCenter'.Selected.costcenter)

 

How do I use these in my flow to filter Sharepoint list?

1 REPLY 1
mohsinkhalid
Resolver II
Resolver II

You can initialize a variable after the trigger and then click on ask in power apps, see screen shot below. For complete how to refer to https://www.youtube.com/watch?v=emAhLzVG9bM

 

mohsinkhalid_0-1603338554293.png

 

Please mark this response as a solution if it solves your problem.

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,649)