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

Save attachments to SharePoint Online

Hello,

 

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?

 

Thanks!

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

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

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

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

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

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 Power Automate Community Video Gallery!

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