web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP Response with Fil...
Power Automate
Unanswered

HTTP Response with File Download

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to include an excel file in a http response action.

The desired functionality is upon calling the http trigger, the flow creates an excel file and returns it and the user sees the file starting to download in the browser.

 

I want the user to be able to download the "Copy File" after they perform the HTTP request.

 

Any pointers on how to format the response?

DrFrank_0-1670971345879.png

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    The Copy action that you are using creates a copy in OneDrive, make sure that the user has access to it (in case they are not the owner of the one drive)

    To answer your question, you simply specify the Status Code and provide the URL generated from the Copy action (using dynamic selector)

    {

    "Url": From the dynamic selector

    }

    HTTP Requests and Responses in a Flow Demo using Power Automate | Softchief Learn

     

  • DrFrank Profile Picture
    Microsoft Employee on at

    The end user may not be on the tenant and thus is not sure to have access.

  • Verified answer
    DrFrank Profile Picture
    Microsoft Employee on at

    I was able to solve this with the help of a friend.

     

    The trick was getting the file contents and correctly formatting the response.

    I will note that there seems to be a bit of a lag when I'm updating the file and getting the file contents. I.E. I make updates, but get file contents is returning stale data. That's a topic of another thread.

     

    DrFrank_0-1671028835983.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard