I'm currently coding a flow that grabs an email and uploads the message body into a word document for my team to view, the flow succeeds with the right information being sent to create the file, but the word document is corrupted and can't open. Please help!
pictures attached for context.
I found some articles that may help you create or update your file.
Solved: write in a Word file using a Flow? - Power Platform Community (microsoft.com)
Populating a Word document with Microsoft Power Automate - Strategy 365 Limited
How to update (not replace) an existing file in Power Automate (tomriha.com)
Thanks for your reply! I am converting HTML to text, since the emails are HTML based. Is there a way to paste the raw text into a word document? Should I create an empty word document first and then write to it? Or is there a separate declaration that needs to be made to the text before assigning it?
Are your taking text from HTML and putting it into the content of the Word document? Word docs are XML based, not text, so that may be why it's getting corrupted.
WarrenBelz
146,587
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional