cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
benrattigan
Level: Powered On

Save email attachments to SharePoint online

I have a Sharepoint list to which I want to use Flow to save email and its attachment(s) to. I can get Flow to save the email fine but it fails when it gets to the attachment.

 

I have got When new email arrives in Shared mailbox > Convert HTML to Text > Create Item in Sharepoint list > Apply to each [Add Attachment] with Id, Name (from Outlook email), Content (from Outlook Email)

 

Following errors:-

 

ActionFailed. An action failed. No dependent actions succeeded.

 

InvalidTemplate. Unable to process template language expressions in action 'Add_attachment' inputs at line '1' and column '2149': 'The template language function 'base64ToBinary' expects its parameter to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#base64ToBinary for usage details.'.

 

 The item is created and email added but the attachment isnt

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Save email attachments to SharePoint online

Hi again

THere is a similar description in this other thread (marked as Solved), it is suggested to set the following inputs in the trigger:

"Has Attachment" = Yes

"Include Attachment" = Yes

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Error-at-Mail-attachment-file-to-create-a-file-in-...

Hope this helps





If anybody solved your question, remember to mark its post as a solution!

Proud to be a Flownaut!





View solution in original post

4 REPLIES 4
Super User
Super User

Re: Save email attachments to SharePoint online

Hi

@ronaldorrjrhas recently reported the same problem:

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Save-email-attachments-from-shared-mailb...





If anybody solved your question, remember to mark its post as a solution!

Proud to be a Flownaut!





benrattigan
Level: Powered On

Re: Save email attachments to SharePoint online

Yes but also there is no solution in that link either.

Super User
Super User

Re: Save email attachments to SharePoint online

Hi again

THere is a similar description in this other thread (marked as Solved), it is suggested to set the following inputs in the trigger:

"Has Attachment" = Yes

"Include Attachment" = Yes

https://powerusers.microsoft.com/t5/I-Found-A-Bug/Error-at-Mail-attachment-file-to-create-a-file-in-...

Hope this helps





If anybody solved your question, remember to mark its post as a solution!

Proud to be a Flownaut!





View solution in original post

benrattigan
Level: Powered On

Re: Save email attachments to SharePoint online

That fixed it, thank you!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 458 members 4,325 guests
Please welcome our newest community members: