I've looked into so many threads and tried almost everything but all my attachments that I send via Outlook are corrupted when I try to open.
These files sit (added via Planner Tasks) under the Shared Documents folder on my Sharepoint site
When a user completes a task they add an attachment.
When the Complete status is chosen it triggers the Flow.
Here is my complete flow
I start by getting the Task ID that has been triggered
Initialise a variable to add the various attachments too (there will be more then 1)
Using the references object from the previous task I go and start finding the file(s) in question
First by using Get_file_content_using_path then using Get_file_metadata_using_path
Whack those into the variable
Then add the variable to the Attachments field in outlook v2
The flow completes and email is sent no problems.
When I open the attachments from the email they are all corrupt. Why???
I've checked the outputs from the completed flow and the content & contentBytes matches up
I have also tried to base64 code the contentBytes in the array (not shown) but this just shows a different contentBytes and also corrupts the file
Any idea what I'm doing wrong??
Solved! Go to Solution.
I figured it out - missing content-type
Thanks to @Paulie78 for the post they put up - https://powerusers.microsoft.com/t5/Building-Flows/files-corrupted-when-sending-multiple-attachment-...
I figured it out - missing content-type
Thanks to @Paulie78 for the post they put up - https://powerusers.microsoft.com/t5/Building-Flows/files-corrupted-when-sending-multiple-attachment-...
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
8 | |
2 | |
1 | |
1 | |
1 |