I have designed a Flow to move email attachments from Dynamics 365 to SharePoint folder.
This Flow runs fine and moves attachments to the appropriate folders for individual entities.
However, after the files have moved from Dynamics 365 to SharePoint, it appears that files are corrupted and can't open.
I stored the image in SharePoint via Flow, here is what its showing:
Here is the Flow:
It seems that you are using the dynamic content of Apply to each in the File content field. Please try to use the dynamic content Attachment from the action List records to see if it will work.
I have tried switching to Attachment and Body (Content of Attachment) but still getting this error.
Any other trick I can try to get this going?
Thank you for posting a reply to a topic on the Microsoft Flow Community! It appears that the users who you have been engaging in this thread with are now awaiting your reply! Please follow-up on this thread ASAP.
Microsoft Flow Community Manager
I have had the same issue and have found the reason why its happening.
It is related to the Attachment body format being in base64 format.
Sharepoint connector expects the file content to be in binary format due to which if you directly map the attachment body you will have a corrupted file.
In the file content mapping, use the expression
@KaustubhHegde What do you mean by << parameter for the body >> ?
Do you mean like, specific form fields like "name" or so?
If that's the case, do I need to type that in front of every field?
I am having the same issue. It does not appear you can save certain Outlook attachments to SharePoint or OneDrive. I've attempted to use base64ToBinary( ), but cannot find the correct parameter to represent the attachment content. There must be a way to easily convert attachments so that they are successfully saved. Anyone? Microsoft?
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Many congratulations to the Season 1 2021 Flownaut Crew!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
Check out the community blog page where you can find valuable learning material from community and product team members!