web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : PkeA27KFEfWmWf7snONK2t
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,900 Moderator 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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete