cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerRon
Helper I
Helper I

How to update a SQLServer table with an uploaded Excel?

Hi 

 

On a monthly basis another application needs to send us a list of account-id's.
We need this list to make a selection of data for these specific account-id's.

 

Following is the requirement we had in mind:

  1. User from another application uploads an Excel workbook from his local system, using Powerapps. The Excel workbook contains around 6000 rows.
  2. Once he clicks the upload/submit button, a power automate flow is triggered
  3. Power Automate will connect to our SQLServer database and do the next action:
    1.  truncate the target table
    2. insert all the Excel-rows in the target table
  4. Once completed, the user is notified

I am pretty new to Power Apps / Automate. But I am looking for people pointing me in the right direction and maybe referring to a video or article on internet where this requirement is shown.
Eager to learn , so hope you can help. Thnx

 

Regards

Ron

1 ACCEPTED SOLUTION

Accepted Solutions
jinivthakkar
Super User
Super User

@PowerRon please check this out 

 

This blog demonstrates how to read excel in batches, this also has the sample flow attached, you can download and make changes are per your requirement

https://piyushksingh.com/2020/07/06/power-automate-read-excel-file/

 

If you implement above flow, you need to add action and logic to dump data in sql which would be straight forward

 

--------------------------------------------------------------------------------

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

 

 

 

View solution in original post

2 REPLIES 2
jinivthakkar
Super User
Super User

@PowerRon please check this out 

 

This blog demonstrates how to read excel in batches, this also has the sample flow attached, you can download and make changes are per your requirement

https://piyushksingh.com/2020/07/06/power-automate-read-excel-file/

 

If you implement above flow, you need to add action and logic to dump data in sql which would be straight forward

 

--------------------------------------------------------------------------------

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

 

 

 

PowerRon
Helper I
Helper I

nx @jinivthakkar , let me check later. Other things got prio, but certainly come back on this one.

Regards
Ron

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,041)