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
Dual Super User
Dual 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
Dual Super User
Dual 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
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,265)