Skip to main content

Notifications

Community site session details

Community site session details

Session Id : JjU52xA8cj5uExk6m+8GkM
Power Apps - Building Power Apps
Unanswered

Bulk insert and update from power apps to Sql server using flow

Like (0) ShareShare
ReportReport
Posted on 11 Aug 2021 18:00:38 by 13

Hi,

 

I want to bulk to bulk insert and update to sql server using flow. 

As of now 30 records, insert and update is taking around 19 second time when the table is empty. 

If I run insert and update statement from sql server it takes around 2 second to perform the operation for 30 records.

 

As of now I am passing collection which needs to be inserted or updated as parameter to flow and then running for each statement in flow to insert and update records in sql. 

Is there any better way to improve the performance?

Thanks in advance

 

Categories:
  • takolota1 Profile Picture
    4,859 Super User 2025 Season 1 on 29 Aug 2022 at 01:13:38
    Re: Bulk insert and update from power apps to Sql server using flow

    Anyone facing similar issues can try this batch SQL CRUD template

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/SQL-Batch-Create-Read-Update-and-Delete/td-p/1715338

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 11 Aug 2021 at 18:10:17
    Re: Bulk insert and update from power apps to Sql server using flow

    @surbhibhandari1 

    What was your formula in PowerApps for doing it?  That is most likely where your slowdown was.  It will be faster in PowerApps than in Flow.

  • surbhibhandari1 Profile Picture
    13 on 11 Aug 2021 at 18:06:43
    Re: Bulk insert and update from power apps to Sql server using flow

    Do you want me to share flow screen shot with you?

  • surbhibhandari1 Profile Picture
    13 on 11 Aug 2021 at 18:06:00
    Re: Bulk insert and update from power apps to Sql server using flow

    When I used patch function for insert and update , the performance was even worse . So I thought flow will drastically improve the performance but it did not 

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 11 Aug 2021 at 18:03:41
    Re: Bulk insert and update from power apps to Sql server using flow

    @surbhibhandari1 

    You will not get the same performance that you get in SQL server.  That is a direct action on the datasource.  PowerApps and PowerAutomate must perform through a different method that takes time to complete.

     

    Is there any reason you chose to do these updates through a flow and not directly from your app?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started