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 / How to send a word doc...
Power Automate
Unanswered

How to send a word document in response using Microsoft flows?

(0) ShareShare
ReportReport
Posted on by 13

I have a flow that creates a word document and sends it in the email to the users. Now, the users don't want to do an extra step opening the document through their email and they want to pop it open directly. Here is the workflow:

 

They click a button -> flow runs -> word document should pop up open.

 

is there a way to send a word document in response using Microsoft flows?

 

@SamPo ; @gamoraes

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Not sure what you mean "in response using a Flow". 

    • If its an automated or recurrence trigger there is nothing to send a response back to.
    • If its a manual trigger then there is no provision in the calling app to display a Word document.
    • If its triggered manually from a Power App then you could return the document back to the Power App as encoded JSON suing the HTTP Response action.  But there is no way for the Power App to display the document without saving it to SharePoint or OneDrive.

    In short I don't think what you are suggesting is at all possible.  The document needs to be either sent as an attachment or saved somewhere and sent as a link.

     

  • rsoni Profile Picture
    13 on at

    Thanks, @Pstork1 for answering. By "in response using a Flow" I meant using HTTP Response. Following is what I have done.

    rsoni_0-1616011746286.png

    Note that the users use another web application, wherein the web UI of that application, they click a button, that sends an HTTP POST request, which triggers this flow. I intend to send the word doc in the HTTP response to that request. I am assuming that since I am using the Content-Disposition header of type attachment when the application receives the word doc in response, the browser will open the doc automatically (provided the application is invoking POST request from the front-end). 

    Now I am testing this HTTP post response using the "Send and Download" option in Postman, whereby I see the word file being downloaded. But I get the following error 

    rsoni_1-1616012309194.png

    Please note that the file opens correctly when sent as part of the email as an attachment.

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    I'm not sure about this scenario, but when returning files from Flow to Power Apps as attachments you need to use a JSON object format that includes a Name: and ContentBytes: property.  I assume you would need to do something similar here.  But I'm not sure what the requirements are of the application on the receiving end for that.

  • rsoni Profile Picture
    13 on at

    You got it absolutely right.. I am trying to figure out the JSON Object format that I should be using. Any leads on that will be very helpful!

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    So this article shows how to put the JSON together to use as an attachment in email.

    Power Automate - Send SharePoint files as attachments | Microsoft Docs

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard