Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Insert rows from excel sheet (not table) to SQL server table

(0) ShareShare
ReportReport
Posted on by 2

Hello folks,

I am newbie in Power Automate Flows and I created a flow that runs every time when a file is created or modified on SharePoint.

This is how it looks and it works fine (picture below), but now I would like to INSERT data from the excel sheet directly to SQL table without "Delay" and "Execute stored procedures" steps. 

 

city_80_0-1651757229866.png

So, my new solution I started as:

city_80_1-1651757681976.png

But I am not able to find a "table name".

If I put it manually, "Sheet1" as my data is stored in Sheet1, I am getting an error

city_80_2-1651757786118.png

So, what would be a solution to insert data from the excel file (Sheet1)  to SQL server table? Data in the excel file looks like:

Sr_NoCountry CodeTEST
8873506171ATAAA
8873509309ATAAA
8873509312ATAAA
8874304362ATAAA
9991907827ATAAA
9991908038ATAAA
9992007941ATAAA
9992007973ATAAA
9992007975ATAAA
9992408796ATAAA
9992408801ATAAA
9992509863ATAAA
9992509876ATAAA
9992803822ATAAA

 

Thank you in advance.

  • city_80 Profile Picture
    2 on at
    Re: Insert rows from excel sheet (not table) to SQL server table

    @v-xiaochen-msft Let me try your solution and I will get back with feedback. Thanks for hints.

  • v-xiaochen-msft Profile Picture
    on at
    Re: Insert rows from excel sheet (not table) to SQL server table

    Hi @city_80 ,

     

    Firstly, have you created table in excel sheet?

    The action can only recognize the data in the excel sheet table instead of the data in the excel sheet.

    vxiaochenmsft_0-1652076844885.png

    vxiaochenmsft_1-1652076851651.png

    vxiaochenmsft_2-1652076858446.png

     

    Secondly, if you have created a table in excel ,you could find the table name here.

    vxiaochenmsft_3-1652077340528.png

     

    Finally, you could invoke id parameter from 'create file' action.

    vxiaochenmsft_4-1652077407004.png

     

    Best Regards,

    Wearsky

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >