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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / get files properties -...
Power Automate
Unanswered

get files properties - returning html instead of word doc

(0) ShareShare
ReportReport
Posted on by 39

Hello, 

I can't get the word doc in the email I'm receiving to open correctly. My flow is shown below.  I added the initialize variable due to the fact that I plan on having more than one document in this folder to send in the email.

 

Thank you in advance for your time and efforts.

 

 

 

 

The email is received as planned, however when I select the email attachment to open up, i get this:

DS36_1-1715287674295.png

then I get a pop up that ask me how I want to open the file, I choose Word and it opens up a word doc as shown below:

DS36_3-1715287848182.png

 

flow:

DS36_4-1715288119522.png

 

 

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @DS36 

     

    You need to store the file object in the array variable:

    {
    "Name": "<filename with extension>",
    "contentBytes": "<output body of get file content>"
    }

    Pass the array directly in the attachment parameter in Send an email action.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • DS36 Profile Picture
    39 on at

    Hello Manish, 

    Thank you for your reply, however I did have that, but I made a couple small changes and now It's coming in as a word doc but still cannot open.  Also in the screen shot 

    Here is what I'm using:

     

    {
      "Name": "DRAFT_XXXX-2024-0XXX_Review Name Design Review Memo.docx",
      "contentBytes": "DRAFT_XXXX-2024-0XXX_Review Name Design Review Memo"
    }
     
    Fig. 1, this is  the email I'm receiving but cannot open the file.  When I  try to open it, I get the pop-up in Fig. 2.

    reply with word doc but no contents.gif

    Fig. 2 pop-up after trying to open the Word file in the email.

    pop up on word doc.gif

     

     The below image is the current flow that I'm using, (I updated the folder from 1.0 New Folder to the next folder, which was Draft Memo, not sure if that was the issue of not actually sending the Word doc to my previous issue, but at least now it's coming in as a Word file.  I also changed the naming in the array, (I'm new to this so not sure if it mattered) from:

    {
    "request/files": "test content",
    "request/filenames": "test name"
    },  

    to 

    Name/Content bytes as you had in your message.

     

    Fig. 3

    entire flow for attachement.gif

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard