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:

Flow Objective

The main goal of this Power Automate flow is to:

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.)

Screenshot 2025-12-04 175429

Step 2. Get Items: Getting all the gallery items.

04-12-2025-06-13-59

Step 3. Select: For Indexing/Mapping each items of get items

  
    outputs('Get_items')?['body/value']
  
Screenshot 2025-12-04 175448

Step 4. Create CSV Table: For creating csv table

  
    body('Select')
  

Screenshot 2025-12-04 175500

Step 5. Create File: Creates the CSV file using CSV table.

  
    body('Create_CSV_table')
  

04-12-2025-06-15-22

Step 6. Create sharing link for a file or folder: For generation of sharable link

  
    outputs('Create_file')?['body/ItemId']
  
04-12-2025-06-16-27

Step 7. Respond to power apps or flows: For returning shared link to power apps.

fileurl:

  
    @{outputs('Create_sharing_link_for_a_file_or_folder')?['body/link/webUrl']}?download=1
  

Screenshot 2025-12-04 175533

Power App Logic

Screenshot 2025-12-04 180028

Add below logic on the Download csv file button OnSelect property.

  
    UpdateContext({varGeneratedfileurl: 'Generatecsv-Respondtopower-app'.Run().fileurl});
Launch(varGeneratedfileurl)
  

Use your own flow name instead of Generatecsv-Respondtopower-app .
If your flow trigger has an input parameter, include it when calling the flow using flowName.run(parameterName) .

Conclusion

By following the steps above, you can download files in Power Apps with a single button click using Power Automate.