cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
benrattigan
Advocate I
Advocate I

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

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



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

4 REPLIES 4
efialttes
Super User
Super User

Hi

@ronaldorrjrhas recently reported the same problem:

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



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



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

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



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



That fixed it, thank you!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,894)