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 / unable to open word do...
Power Automate
Unanswered

unable to open word doc sent from power automate and created in SharePoint.

(0) ShareShare
ReportReport
Posted on by 2

I have a power automate flow that starts with the trigger "when an item is created" and the site address is "templates" and the list name is "contract details". I then have a condition that if the column "create now" is set to "true" it runs my next condition. If false, the flow ends. The second condition that runs when the first condition is "true" is if the column "document choice" is set to "simple than it is true. If it is true, an action "populate a Microsoft word template" with the location as "templates" and the document library "templates (painting)", and the file "/Painting contract template.docx". I then have an action for SharePoint, "create file". The site address is "templates". the folder path is "/Completed contracts". The file name is "company name.docx" and the file content is the "Microsoft word document" which is the created file turned in to a word doc. Another action, "get file content using path". The site address is "templates". The file path is chosen from dynamic content "create file" and is "body/Path". Finally, a "send an email" action is added. The "to" "subject" and "body" are all populated. The attachment name is "Company name.docx" and the attachment is the function, "body ('Get file content using path')? ['$content]. If the second condition is false, it follows the same schema, just a different document. The flow is succeeding, but I when I try and open the word document from my email, it says it can't open in browser. It then tries to prompt you to open in the desktop app, and when I do that, it says content is unreadable and asks if I trust the sender. Even after clicking yes, it still doesn't open. What is wrong and how do I fix this?

Categories:
I have the same question (0)
  • Ssommer22 Profile Picture
    2 on at

    This is what the flow looks like: 

     

    Ssommer22_0-1704468711566.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