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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow with Excel and SQ...
Power Automate
Unanswered

Flow with Excel and SQL - delete all rrows in table and insert excel for business Excel table values

(0) ShareShare
ReportReport
Posted on by 4

I have a spreadsheet in a O365 group document library.

 

Every day aat 3am I want to dump contents of the SQL table and rebuild from Excel table. 

How do I delete all the records in an existing SQL table and iterate thru the rows of an excel table  in an excel file we store in a groups documnt library, and simply insert those rows to the table?

 

I cannot find 1 example of this online?  Anyone out there done this.

 

Im playing with Excel List all rows and then Apply To Each/ Get Rows in SQL Action.  But I am not ssure howw to configure and use.  It runs but just spins forever.

 

Im new to flow but work with SSIS and SQL all the time.  Its just a pain to work with Sharepoint group files from SSIS so I am experimenting with FLow.  I like the tool but Im suprised that I cant find examples of this?

 

Thx,

 

Joe

Categories:
I have the same question (0)
  • jueberro Profile Picture
    4 on at

    Update:

     

    I cropped in a simple flow that works..

     

    Using 'Excel - List Rows' and 'SQL - Inset Row' (with Apply To Each Selected).  I can get my data added.  I had to use a dateadd workaround to get EXCEL Integer value dates which were being seen as text to come in as 'datetime' to SQL.

     

    All thats left is 'How do I delete' records from a SQL Table.  Delete Row doesnt see the Group Document library as a source?

     

    Thx,

     

    Joe

     

     

     

     

     

  • jueberro Profile Picture
    4 on at

    Flow-Excel to SQL.png

     

  • v-yuazh-msft Profile Picture
    on at

    Hi @jueberro,

     

    The screenshot of the flow should as below:

    Capture.PNG

     

    Best regards,

    Alice

  • GabrielStJohn Profile Picture
    on at

    Hello, @jueberro!

    Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yuazh-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • Shivaji Profile Picture
    14 on at

    Hey, I am working in similar scenario but i am facing some error. I have to delete all rows in the sql but i dont know what to fill for the *Row id. 

     

    I have herewith attached a screenshot of it.

     

    Untitled.png

     

     

  • KeplerSorrenson Profile Picture
    2 on at

    Hi, not sure if you are still looking for this. But, just for completeness and to help out others having the same issue...

     

    the Row id value should be whatever your PRIMARY KEY is on the table.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard