
Announcements
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?