Getting a body of an emial to move to sharepoint using flow
I am having issues moving the body of an email from Outlook 365 into a Sharepoint document. It was simple getting the attachment to send over, but in my case the body of every email has necessary information that I need to be added to Sharepoint. As of right now when the body of the email is sent over it gives me an error except when the attachment is a word document.
I need to complete the following:
Get all (and multiple) attachments from an outlook email to a Sharepoint document.
Get all emails with and without an attachment from outlook to a Sharepoint document.
About the 1st one, I just created a flow like below, and it is true that all my runs failed. No matter the attachment is excel file or word file.
But I used the Flow template "Save my email attachments to a SharePoint document library" to create a new one, all runs run successfully, including when there are multiple attachments in new email. Please try to use the template so far instead.
About the 2nd one, this cannot be done so far. As if you want to create a file in SharePoint library with the action below, you need to fill the File Content field with a file dynamic content. Any other dynamic contents won't work.
Community Support Team _ Mona Li If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What about getting the body of the email when there is an attachment to the email? I made a custom template with “ On a new Email” as the starting process. Under “Select an output from previous steps” I selected “Attachments”. If I put “Body” as the “File Content” the body of the email will pull over to a Sharepoint document. The only issue is that if the attachment is a .PDF or in Excel that new file will give me an error. It will work however if the attachment is a Word Doc.