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 Apps / Deleting a record from...
Power Apps
Unanswered

Deleting a record from two related sharepoint lists

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Suppose I have Sharepoint List A and Sharepoint List B.

 

Sharepoint List A (main list)

NameIDProfessionAgeGender
John Doe1Engineer36Male

 

Sharepoint List B

IDCompanyCompany ID
1ABC industries123

 

The ID column in Sharepoint List A is the built in ID column of Sharepoint and I'm using that ID as reference in my Sharepoint List B

 

Now my question is, let's say I delete the record in Sharepoint List B, how do I make it so that the related record in Sharepoint List A would be deleted as well?

Categories:
  • WarrenBelz Profile Picture
    156,576 Most Valuable Professional on at

    Hi @Anonymous ,

    I am assuming the field in List B is not called ID (you already have one of those built-in), so I will use the name IDRef (change to yours). You also did provide the code you are using to delete the record in List B, however it would look something like this if you were deleting the one in List B from a gallery

    UpdateContext({varRefID: ThisItem.IDRef});
    Remove(ListB,ThisItem);
    RemoveIf(
     ListA,
     ID = varRefID
    )
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • WarrenBelz Profile Picture
    156,576 Most Valuable Professional on at

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard