web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to remove a specif...
Power Apps
Unanswered

How to remove a specific person in a person column but retain others while editing?

(1) ShareShare
ReportReport
Posted on by 822 Super User 2025 Season 2
I've been stuck for a while trying to think of a logic for my use case. 

So what I want to happen is during edit, I have a combo box that has multi select enabled. 
For example this multi select has 2 person with the name Winter and Snow 

now after I want to edit it I change it to Winter and Casper.
in the list I want to remove only Snow ideally and then add in Casper. 

What I am thinking of is 
 
ForAll(
    colExistingParticipant as ExistingParticipant, 
    If(
        Not(ExistingParticipant.Participant.DisplayName in ForAll(ReviewParticipants_Edit.SelectedItems, DisplayName)),
        RemoveIf(
            AttachmentParticipants,
            cID = ExistingParticipant.cID && (LOGIC HERE?)
            {
                *how do I remove a single person in a column type???*
            }
        )    
    )
)



 
Categories:
I have the same question (0)
  • Verified answer
    MarkRahn Profile Picture
    1,147 Super User 2025 Season 2 on at
    How to remove a specific person in a person column but retain others while editing?
    Hi,

    Seems like you post this again today as another question:
     
    I'm going to reply with the same answer. I think you are over complicating things.
     
    You don't need to so much "remove" users as just set the field to the users you want. You already said if the user is not selected then you want them removed. This essentially means you want to set the field to what the user selected.
     
    First you need to build a collection of the Selected Users:
    ClearCollect(
        colSelectedUsers,
        ForAll(
            ComboBoxUsers.SelectedItems,
            {
                '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                Claims: "i:0#.f|membership|" & Lower(Email),
                DisplayName: DisplayName,
                Email: Email
            }
        )
    );
    
     
    Then Patch your list with the collection:
    Patch(
        'YourSharePointList',
        Lookup('YourSharePointList', ID = locCurrentRecord.ID),
        {
            MultiSelectPersonField: colSelectedUsers
        }
    );
    Take a look at this article by Matthew Devaney which provides more examples and detail:
     
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a Like.

    Thanks
    -Mark


     
     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard