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 / Trigger Delete SharePo...
Power Automate
Answered

Trigger Delete SharePoint Item action from child list upon changes on parent list

(0) ShareShare
ReportReport
Posted on by 1,115

I have a parent list and child list, items in child list are subset of parent list. The ID column from parent list is being used as a reference for child list. I would like to delete child list item when the referenced parent list item's status changed to "Closed". The flow that I have currently is deleting all the records from the child list. How my Delete action should look like if I have to delete only single item from child list.

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @RameshMukka ,

     

    Could you please share a screenshot of the configuration of your flow?

    You need to check for the items in the child list, and only delete the item which's special column are same with id of the special item in the parent list.

    1.png2.png

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • rameshmukka Profile Picture
    1,115 on at

    @v-alzhan-msft I have exactly tried your way, but it is deleting all my list items in child list. It should delete only one item though. In summary this is how my 2 lists are

     

    Primary List got ID, other columns

    Secondary List got ID, other columns and ReferenceID. ReferenceID is to understand which item from primary list is being referred to here. Every item in child list is referencing to parent list using this ID.

     

    Now what I want is - If ( PrimaryListItem.Status = Closed) then Delete Secondary list item where SecondaryListItem.ReferenceID = PrimaryListItem.ID. Here is my current flow.

     

    When compared with your flow, I just added another condition somehow the condition fails and flow doesnt reach delete action.

     

    FlowError1.JPGFlowError12.JPG

  • rameshmukka Profile Picture
    1,115 on at

    @v-alzhan-msft When I try to debug, in below way I found the condition should be matched. Dont understand why its failing

     

    RameshMukka_0-1598008282993.pngRameshMukka_1-1598008332618.png

    RameshMukka_2-1598008367049.png

     

  • Verified answer
    rameshmukka Profile Picture
    1,115 on at

    Ok the problem was ReferenceID column I was using in child list was of type string. I have changed it to number and it started working.

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