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 Item in a Share...
Power Automate
Answered

Delete Item in a SharePoint List when Deleted in another SharePoint List

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have two almost identical SharePoint Lists. One List is used by my users at Power Apps. The other List is a backup.

So, when my users delete an Item, it should be deleted in the backup list too.

 

But, when i tried to create a flow to delete an item when it is deleted in the List users work, there is only the option to delete through the ID of the item, but my lists does not share the same ID.

 

There are some other way to run it?

 

Best regards,

Categories:
I have the same question (0)
  • Verified answer
    mcin9781 Profile Picture
    on at

    Hey Rodrigo,

     

    You could have a custom ID field on the backup list that identifies with the original list to select the file to delete.  Let me know if this help.

  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @Anonymous ,

    if the items have unique 'Title', you could add 'Get items' action to the backup list, use filter to get only items with the same title as the deleted item, and then delete it using the returned item ID.

    Title eq '@{triggerOutputs()?['body/Name']}'

     image.png

    If the item 'Title' is not unique (you've got multiple items with the same title), then I think you'll have to store the ID of the original item in the backup list and use the same logic, just based on the ID instead of Title.

  • Community Power Platform Member Profile Picture
    on at

    Hello @tom_riha ,

     

    This solution was the first thing i thought. But the "Title" field to choose that is the one unique at my lists does not appers at the dynamic content.

     

    Look what i did. When an item is deleted, get items. In the filter Query, the field Title is not appearing.Imagem.png.

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @mcin9781 ,

     

    I have a custom ID, but in the collumn Title. That is the option that does not appears at the filter query.

     

    Best regards,

  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    For the trigger 'When an item is deleted' the item title is the 'Name' dynamic content, the filter query should be exactly as on the screenshot I posted.

  • Community Power Platform Member Profile Picture
    on at

    Thanks @tom_riha !

     

    It worked!

     

    Best regards,

  • Neha12 Profile Picture
    31 on at

    Hi @tom_riha 

     

    I used the same flow

    I used both the id column in filter query

    But the flow is deleting in row order sequence not mapping with ids, it doesn't delete the same ID from source to destination,  instead it deletes the ID with same row number that was deleted in source 

     

    Please help

     

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard