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 / Remove Current user fo...
Power Apps
Unanswered

Remove Current user form a multi-selection person/group field

(0) ShareShare
ReportReport
Posted on by 2

Dear Community,

 

i want to remove the current User from a multi-selection person/group field (Confirmation_is_requested_from) in Sharepoint and Patch the User to a other field (Confirmation_exists_from) and after that, i want alle the Person who didn't confirmed to be write in the field (Confirmation_pending_from) and i dont know how to do that.

 

The Szeanrio:
After a file is uploaded to a sharepoint library, the manager can enter people (multi-select) who need to read that file (PDFs only). For this purpose there is an app that shows the user all the files assigned for him. He can read the files in a pdw viewer (works perfectly). The user can then select the files (checkbox) and confirm. Now I want the person to be deleted from the sharepoint list and added to the other field (as wrote above).

 

Previously, I saved the sharepint list as a collection.

 

 

 

When the app starts:

Set(pdfViewerVisible; false);;
ClearCollect(All_Documents; Dokumente_Arbeitssicherheit);;

OnCheck:
Collect(ReadedFiles; ThisItem)

OnUnCheck:
Remove(ReadedFiles; ThisItem)

 

 

 

Sharepoint libSharepoint libCollectionsCollections

 

Checkbox and confirm buttonCheckbox and confirm button

 

 

 

 

Thank you!

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Power_nub-it 

    To remove a person (the current person) you can use the following:

    With({_record: LookUp(yourDataSource, ID=theRecordIDYouWant),
     _userEmail: User().Email},
    
     UpdateIf(yourDataSource, ID=theRecordIDYouWant,
     {Confirmation_is_requested_from:
     ForAll(Filter(_record.Confirmation_is_requested_from, !(Email = _userEmail)),
     ThisItem
     )
     }
     )
    )

     

    Now...I'm a little confused on your scenario.  You mention removing the person from Confirmation_is_requested_from and putting them to Confirmation_exists_from and then all the other people in that column into Confirmation_pending_from.

    My confusion is...it sounds like your end result is the Confirmation_is_requested_from column will be empty, so why would you want to remove a person if the end result is that the column is empty...or have I misunderstood?

     

    I hope this is helpful for you.

  • Power_nub-it Profile Picture
    2 on at

    @RandyHayes 

     

    Oh, your right sry. But first of all, thx for your reply.

     

    And what i wanted to do this:

     

    All employees are entered in Confirmation_is_requested_from.

     

    When someone has read and confirmed it, the employee is entered in Confirmation_exists_from

    All the rest are transferred to Confirmation_pending_from. -> look at Dok 2.pdf

     

    SHList.png

     

    So how can I loop this for all selected documents/items in ReadedFiles?

     

  • gmbeee Profile Picture
    87 on at

    Hi @RandyHayes ,

     

    I’m trying to use this concept to remove the current user from a multi person field. However I’m getting an error:

     

    Invalid Argument. Expecting a table value, but of a different Schema.

     

    I can’t figure it out. Thanks.

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @gmbeee 

    What is the formula you are trying at this point and where do you have the formula?

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
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard