Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Transfer file/documents from Sharepoint Document Library to SQL

Hi All,

I m new to MS Flow and would like to know the following is possible.


I have a SharePoint online Document library, if someone creates or upload a document in to it I want to add that document to SQL table. Also, if someone edit a document in that library I want to reflect that on SQL table.


First is this possible to do using flow, if so do we need Azure SQL or can we use on-premise SQL server?


Can someone please help me on this.






Community Support
Community Support

Hi @Dineth,


Which data you would like to save into SQL Server Table?

If the SQL Server table is only used for recording, for only the file name, then this is possible.

For file content and the other values, it may not be available currently.

Check the following idea:

SharePoint Files - all fields not just a few

Both Azure SQL and on-premise SQL server could be used here.

You may first check the available template:

SQL Server

Adding blog for reference:

Using Flow with on-premises data and applications




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-micsh-msft Mchale,


Thank you for your reply, but I would like to duplicate the actual document from Sharepoint document list to SQL table. Also keen to get all information stored in Sharepoint list, like to have an identical copy. 


Regular Visitor



Can anyone please help me on this.



Not applicable

Hello @Dineth , Did  you found any way to achieve it , i have the same concern. want to store document from Sharepoint folder to SQL server. 

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,211)