cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kylevallentine
Helper II
Helper II

Save form attachments in SharePoint List/Documents

Hello, 

 

Trying to make it so that an uploaded file on a form is deposited to an attachments column or to a dedicated documents site (preferably) that exists on a SharePoint.   

 

I am having trouble with my flow in that I can't figure out how to "get the file". Please see the below flow. This SharePoint site has permissions for access, but any organization individual can fill out the form/upload data. Any help would be much appreciated!!!

 

***the info in "file path" is what I copied from seeing online through other videos and research. It doesn't seem to like that path when testing the flow. 

 

Shrunk Sharepoint to documents.PNG

Sharepoint to documents.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @kylevallentine 

If you want to save Form attachments in SharePoint Library, you can get the file content of the uploaded file by id from Parse JSON action, then add create file action to create a new file in the specified folder.

I set up a flow, you can refer to:

vLilyWmsft_0-1646358028244.png

vLilyWmsft_1-1646358050414.png

vLilyWmsft_2-1646358069069.png

Hope the content above may help you.

Best Regards

If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Masino
Super User
Super User

Hi, you are missing the extenction when saving the file 😉
If doesnt work, so try to use "get file info"/"Compose"/"Crete new file" combination .

Hope this helps

kylevallentine
Helper II
Helper II

I am getting an error that the JSON format is not right. I copied the file name and generated the JSON code. I made the form a group form, but still am having issues getting the attachment to save in sharepoint and not have to pull from personal one drives. 

Hi @kylevallentine 

If you want to save Form attachments in SharePoint Library, you can get the file content of the uploaded file by id from Parse JSON action, then add create file action to create a new file in the specified folder.

I set up a flow, you can refer to:

vLilyWmsft_0-1646358028244.png

vLilyWmsft_1-1646358050414.png

vLilyWmsft_2-1646358069069.png

Hope the content above may help you.

Best Regards

If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you! That makes sense. Appreciate it! 🙂 

lferreira1
New Member

Hello I'm trying upload attachment from http to create a Sharepoint list record with attachements, but it fail. Could you help me, please?

Helpful resources

Announcements
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.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,022)