Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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

(0) ShareShare
ReportReport
Posted on by 1,091

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.

 

 

  • Verified answer
    rameshmukka Profile Picture
    1,091 on at
    Re: Trigger Delete SharePoint Item action from child list upon changes on parent list

    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.

  • rameshmukka Profile Picture
    1,091 on at
    Re: Trigger Delete SharePoint Item action from child list upon changes on parent list

    @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

     

  • rameshmukka Profile Picture
    1,091 on at
    Re: Trigger Delete SharePoint Item action from child list upon changes on parent list

    @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

  • Verified answer
    v-alzhan-msft Profile Picture
    on at
    Re: Trigger Delete SharePoint Item action from child list upon changes on parent list

    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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1