Hi, I am building a flow for controlled documents. I have a SharePoint list where the user uploads a draft document with metadata and then an appoval workflow. Once the document has been approved, the flow creates the file in the Document Library and then updates the file with the metadata. It is all working fine except I get an error, "Sorry, this document can't be opened for editing" and when I open in Word I get the error "Word found unreadable content in the ....doc name.... Do you wan to recover the contents of the document?". Every file gives the same error, Word, Excel, PDF, the only one that I could open was a 1 line text file.
I Think I need to do soemthing like HaiderShah1 post https://powerusers.microsoft.com/t5/Using-Flows/MS-Flow-corrupts-file/td-p/249659 but I'm a novice at SharePoint and have tied myself in knots trying to figure out the string for the base64ToBinary function. Could you please help
Update, I have added
Hi @Jim_W ,
Please try to use base64ToBinary(body('Get_attachment_content')).
Thanks for the suggestion, but I received an error. I think I am on the right track with my update but may have to use an array with $content-type
Check out the News & Announcements to learn more.
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.