I have created the flow which retrives the attachments from Dynamics CRM email and then create folder and add attachments in SharePoint.
I am converting the attachment to base64 as in below screenshort.
when i run flow attachments get created and it works properly.
but I noticed that the value of File Content is changing automatically as per below.
due to which I am gettig error when I open document in sharepoint.
Could you share the full screenshots of your Flow configuration?
I have tested it on my side. If the content of the file is not in the standard pdf format, then the same error will occur.
I noticed that you filled in the content of the Body, is this the content of the email body, or the Body when you get the Attachment?
This Body seems to contain the attachment File content, but not the File content.
I am wondering if you are not using the contents of the correct attachment file to fill the File Content. The screenshot shows that the file is a pdf file. If the file content does not match, it cannot be opened normally.
Please provide more details and we may provide a proper workaround for you.
If I see this correct those actions you defined of Dynamics are just renamed actions but arent actually actions to get the attachment out of Dynamics right.
Maybe you should look for actions that are specially made to get attachments.
Fill out a quick form to claim your user group badge now!
We've given our badges an overhaul and also added some brand new ones!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!