Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Save attachments to SharePoint Online



I'm currently having 2 issues when saving attachments to SharePoint online.

1) Not only the attachments are getting saved but also the screenshots added in the body of the email. Is there a way to filter this out so only the attachments are getting saved?

2) When a single quote is added in the filename of the attachment, the file is not saved in SharePoint. I receive following error:

"status": 400, "message": "The expression \"web/GetFolderByServerRelativeUrl('/sites/CV/Shared Documents')/files/add(url='T 1029 nl SP 'Salesofferte LA' (2015-04-02).docx', overwrite='true')\" is not valid.",

Is there an action available where I can perform basic (replace, substring, left, right, ...) actions on input variables so I can trim these invalid characters out? If not, can the action 'Create a file in SharePoint Online' be fixed so it can process all characters?



(My flow ID is 070cb201-af35-4c22-9336-ecfff5a0f5ff)

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,162)