Showing results for 
Search instead for 
Did you mean: 
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:




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




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.




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:



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

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




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


Helpful resources

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)