Forum Discussion
How to get an attachment provided via FORM added to Sharepoint List
This is an old thread already, but giving it a shot...
I've managed to get the attachment to Lists (similar steps ... Create item - Parse JSON - Get file content using path - Add attachment) but what happens is the file name is appended with my user name. I don't want that, how to keep the attachment file name just as it was when uploaded via Forms?
You can use an expression in the flow to handle this. The name is appended with underscores, so you will need to find the first two and remove them:
join(skip(split({File_name}'_'), 2), '_')Use this new name when adding attachment or creating a file in a library:
If you are collecting files from external users, you can also consider Plumsail Forms. It features native integration with SharePoint, allowing you to save public responses along with their attachments directly to your selected SharePoint list.
Best Regards,
Margo
Plumsail team