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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / switch single people p...
Power Apps
Unanswered

switch single people picker to multiple people selection

(0) ShareShare
ReportReport
Posted on by 42

Hi all,

I use Sharepoint List as my data source of power apps, and one of the columns is Notificiation_Email. Everything worked fine when this column was single selection, but when I switched the Settings to allow multiple selections, a lot of errors appeared.

For the Combox_user items:

 

Distinct(
 'ITGC Setting',
 'Notification Email'.Email = User().Email
 )

 

For the gallery Items:

 

SortByColumns(
Filter('Setting', 
 (IsBlank(ComboBox_user.Selected.Value)||'Notification Email'.Email = ComboBox_user.Selected.Value)
),
"ID",SortOrder.Descending)

For the Notification_Email text in gallery:

ThisItem.'Notification Email'.DisplayName

 

I guess the problem is that the record turns into the table, but I dont know how to solve them. Can anyone help me? Thanks

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,040 Most Valuable Professional on at

    Hi @tracycccc ,

    This should work, but note that it is not Delegable

    SortByColumns(
     Filter(
     'Setting', 
     (
     IsBlank(ComboBox_user.Selected.Value)|| 
     'Notification Email'.Email in ComboBox_user.SelectedItems.Value
     )
     ),
     "ID",
     SortOrder.Descending
    )

    If you require it to have some degree of Delegation, try this

    Ungroup(
     ForAll(
     ComboBox_user.SelectedItems As _Data,
     Sort(
     Filter(
     'Setting',
     'Notification Email'.Email = _Data.Value
     ),
     ID,
     SortOrder.Descending
     )
     ),
     "Value"
    )

     

    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

  • tracycccc Profile Picture
    42 on at

    Hi @WarrenBelz ,

    'Notification Email'.Email in ComboBox_user.SelectedItems.Value

    .Email reports error: The parameter type is invalid and the table value cannot be used in this context.

  • WarrenBelz Profile Picture
    153,040 Most Valuable Professional on at

    @tracycccc ,

    OK - there is something wrong here I did not spot before - You can try .Email instead of .Value but the Combo Box Items of

    Distinct(
     'ITGC Setting',
     'Notification Email'.Email = User().Email
    )

    does not seem to be valid code to produce anything. What can you see in your choices ?

     

  • tracycccc Profile Picture
    42 on at

    I am sorry I intercepted the wrong code,the right one should be this:

    Distinct(
     Filter(
     'ITGC Setting',
     'Notification Email'.Email = User().Email
     ),
     'Notification Email'.Email
     )

    The "=" in the Combo Box items reports that The contents of the comparison are incompatible. Cannot compare table,  text.  This used to work when it was a single people selection, but an error was reported after switching to multiple selections😥

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard