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. 




Can anyone please help me on this.



Helpful resources

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (12,841)