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 / Filter person combobox...
Power Apps
Answered

Filter person combobox by group ID and update datacard values

(0) ShareShare
ReportReport
Posted on by 174

Hi,

 

I have a form connected to a sharepoint list, one datacard is linked to a person column, i wish to filter the dropdown by a groupID.

 

My items for the combobox is

Filter(Office365Groups.ListGroupMembers("***MYGROUPID***").value, Not(displayName = "Joe Blow" || displayName = "Another Guy" || displayName = "Another Girl"))

and my defaultselecteditems for the combobox is 

 

Office365Groups.ListGroupMembers("***MYGROUPID***").value

However i cannot get these values to patch to sharepoint, so i take it i need to modify my Update value of the datacard? however every piece of code i put in it is wrong?

 

I just wish to filter a dropdown via a group ID and patch values to sharepoint.

 

Could someone help?

 

 

 

 

 

 

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @SomeoneAwesome ,

     

    Let's say the person column allows multiple selections.

    I made a sample for you.

    vxiaochenmsft_0-1686626162633.png

    ForAll(DataCardValue3.SelectedItems,{Claims:"i:0#.f|membership|"&userPrincipalName,Email:userPrincipalName,Department:"",DisplayName:"",JobTitle:"",Picture:""})

     

    Best Regards,

    Wearsky

  • SomeoneAwesome Profile Picture
    174 on at

    Sorry i get errors.

     

    Also its a single person select group.

     

    What is best practice to filter a person combobox dropdown? i just want to filter a bunch of names..

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @SomeoneAwesome ,

     

    So you just want to select one person in the combo box ,right?

    Please try this in update attribute

    {Claims:"i:0#.f|membership|"&combobox.Selected.userPrincipalName,Email:combobox.Selected.userPrincipalName,Department:"",DisplayName:"",JobTitle:"",Picture:""}
    
  • SomeoneAwesome Profile Picture
    174 on at

    Thank you. I just couldn't figure that one out.

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 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard