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

4 REPLIES 4
Masino
Resolver II
Resolver II

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! 🙂 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,848)