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 / delete a SharePoint l...
Power Automate
Suggested Answer

delete a SharePoint list item when the corresponding excel row is deleted using power automate

(1) ShareShare
ReportReport
Posted on by 2
 delete a SharePoint list item when the corresponding excel row is deleted using power automate, can you help
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
    Hi,
     
    There is no trigger to trigger a flow when excel row is deleted. So workaround would be to create a scheduled flow which runs every specified interval, checks the items in sharepoint list and then check whether same item exists in excel or not, if not > delete that item from SP list.
     
    Also we need a unique id column that can acts as unique identifier for sp list and excel data so that data can be easily looked up.
     
    For demo purposes- i have created a sp list having 2 columns - Title and Office where title column is unique identifier.
     
    Now same data is found in an excel file enclosed in table

     
     
    Now let's see how flow can be designed.
     
     
    So a scheduled flow has to be created which should run in specific interval of time.
    Following steps need to be followed under scheduled flow
     
    1. Get items from the sharepoint list. enable pagination if needed.
     
    2. Now loop through each item in get items action output and do the following steps
     
    Follow the steps to be done when inside the loop
     
    2.1- use list rows in table action and use a filter query to filter only the rows whose title equal to title of current iterating item details as shown below
     
    2.2- use a condition to check whether the number of items/rows returned by list rows in table action is zero or not. if zero- it means row in the excel is deleted and thus need to be deleted from excel as well. see below for the code
    Expression - 
    length(outputs('List_rows_present_in_a_table')?['body/value'])
     
    In yes branch - use delete item action to delete that sp list item
     
    Hope this helps !
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!

     
     
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,976 Moderator on at
    Hi,
     
    While there is no specific Trigger for Excel, there is a Trigger for when a File is changed in SharePoint or OneDrive
     
    But you would still need to verify that something got deleted, as Nived as mentioned.
     
    So you either need too use SharePoint, or create a copy from the file and compare the unmodified file to the modified one.
    Then also delete it from the master copy or add to the master copy to keep them in sync.
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard