Introduction
This article outlines how to enable file downloads in Power Apps for documents generated by Power Automate. Many business apps require users to access reports or templates created through automated flows. By integrating Power Automate with Power Apps, files can be produced and instantly downloaded with a single action, giving users quick access without navigating external storage locations. This approach simplifies the process and ensures users always get the latest version of the document.
Prerequisites
Before implementing this , ensure the following:
A Data source such as SharePoint.
A Canvas Power App with a Gallery control connected to your data source.
A Power Automate that is generating csv, excel or any other file.
Flow Objective
The main goal of this Power Automate flow is to:
Take an gallery items as input.
Generate csv file out of it.
Return the generate csv link for further use in PowerApps.
Below are the steps to enable file downloads in Power Apps for documents created by Power Automate:
Flow Design Steps
Step 1. Trigger: When power apps calls a flow
You can also pass the input parameter used in the Get Items filter query.
(Note: Make sure to pass the same parameter when calling the flow from Power Apps.)

Step 2. Get Items: Getting all the gallery items.
Site Address: Add site address you are using in power app gallery.
List Name: Add List name you are using in power app gallery.

Step 3. Select: For Indexing/Mapping each items of get items
From: Select the output of the get items .
outputs('Get_items')?['body/value']
Map: Map all the fields with their labels.
Employee Name: item()?['EmployeeName']
Employee Email: item()?['EmployeeEmail']
Joining Date: item()?['JoiningDate']
Salary: item()?['Salary']






Join the conversation! Your thoughts help the community grow.