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 / Deletes all values in ...
Power Apps
Unanswered

Deletes all values in People Column- Sharepoint List

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,
I cannot seem to figure out why this code deletes all the values in Parent Column . I need to just delete the dropdown selected by the user and retain its old values. 

 

ClearCollect(
colAllPersons,
ForAll(
Gallery1.Selected.Parents,
{Parents: Dropdown6.SelectedText.Value}
));

Remove(
colAllPersons,
Filter(
colAllPersons,
Parents = Dropdown6.SelectedText.Value));

Patch(
TestAccessList,
LookUp(
TestAccessList,
'Test Project1'="Dev1"
),
{
Parents: ForAll(
colAllPersons,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: Dropdown6.SelectedText.Value,
Department: "",
DisplayName: "",
Email: Dropdown6.SelectedText.Value,
JobTitle: "",
Picture: ""
}
)
}
)
Here's the sharepoint im trying to update:
TestAccess

bpplls_0-1676295511006.png

 

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

    Hi @Anonymous ,

    The only relevant code is this

    Remove(
     colAllPersons,
     Filter(
     colAllPersons,
     Parents = Dropdown6.SelectedText.Value
     )
    );

    which will remove all records from colAllPersons where the Parent column is equal to the value selected in Dropdown6 - is this not what you want to do ?

     

    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.

    MVP (Business Applications)   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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard