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.



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

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (1,486)