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 / 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,129 Super User 2025 Season 2 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,442 Super User 2025 Season 2 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

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard