Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Connecting Sharepoint folder to SQL database using flow

Hey there,

I'm currently attempting to automate the movement of new files that'll be continuously added to a Sharepoint folder into SQL database using flow.


It seems you need the specific file name to use the "Get Rows" and "Get Worksheets" Excel steps in order to then get dynamic options for the "Insert Row" SQL step.  This is a problem for me since I need to automate the movement of new files which have yet to be added to the folder and thus haven't been named or had their format established yet.  If I try to extract the contents of the folder, all I get is a list of file names as a dynamic option rather than the contents of the files themselves.

Converting to a CSV file poses similar problems and the SQL step won't recognize the rows.


I'd prefer to use flow as the automation tool since I'm interested in exploring it, but if you guys have simpler suggestions to automate the interaction between Sharepoint folders and SQL I'd appreciate those as well.

Community Support Team
Community Support Team

Re: Connecting Sharepoint folder to SQL database using flow

Hi @pclausen ,


Do you mean that you have obtained the properties of the file in the specified folder, but can't get the file content?

Could you share the current configuration of Flow?


If you use When a file is created as a trigger and you can get the file name, you could then use Get file content action to get the file content, Like:


If you use List folder to get the files in specified folder, you could still use Get file content action to get the file contents, as below:


Please take a try.


Best Regards,

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

Helpful resources


Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.


Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 197 members 4,049 guests
Please welcome our newest community members: