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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Perform DML operation ...
Power Automate
Suggested Answer

Perform DML operation from Excel to Database table

(1) ShareShare
ReportReport
Posted on by 2
I have excel file with filled data and when I update any data into excel file then it will also update in my database table for that I want to create power automate workflow so how can I do that? I tried a lot but not achieve what I want. Also make sure that only row or rows that updated go to the next action not all data send to update. My flow that I created is given in attachment. using that flow is not working properly. Please suggest me any other trigger action or any changes in this flow. I want to do using power automate trigger action only.
Screenshot 2026-02-24 145700.png
I have the same question (0)
  • Haque Profile Picture
    3,653 on at
    Hi @AP-24020902-0,
     
    Would you please mention what database you want to use? Also, is you excel file stored in SharePoint?
  • Suggested answer
    Haque Profile Picture
    3,653 on at
    Hi @AP-24020902-0,
     
    Was just following up - if not solve yet, here are the steps you can follow:
     

    1. Trigger: The closest trigger is "When a row is added, modified or deleted" from the Excel Online (Business) connector, but it requires the Excel file to be stored in OneDrive or SharePoint and formatted as a Table. This trigger fires per row change, so you get only the updated row(s).

    2. Excel Table Setup: Ensure your Excel data is formatted as a Table (not just a range). Store the Excel file in OneDrive for Business or SharePoint Online to use the trigger.

    3. Flow Logic: Let's use the "When a row is added, modified or deleted" trigger. In the flow, get the changed row data from the trigger. Use this data to update your database table (e.g., SQL Server, Dataverse) for that specific row. This way, only the updated row is processed, not the entire dataset.

    4. Database Update: Use the appropriate connector (SQL Server, Dataverse, etc.) to update the row based on a unique key (e.g., ID). Use an "Update row" or "Upsert" action to modify the existing record.

    5. If your Excel file is not in OneDrive or SharePoint or not formatted as a Table: You cannot use the row-level trigger. You would need to schedule a flow (e.g., daily) that reads the entire table and compares rows with the database to detect changes, which is more complex and less efficient.

    Note: Don't forget to consider error handliing mostly for database area if any update fails.

     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!

     

     

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard