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 / How can I get mutiple ...
Power Apps
Answered

How can I get mutiple values from a sharepoint list and display them in one Combibox

(0) ShareShare
ReportReport
Posted on by 4

My problem is, I have a submit form (it is not actually a from, mutiple fields that are pushed via patch function). I also have an edit mode and I want to get values from the sharepoint list to display them in the edit form. Works fine for every field, but i have a Stakeholder Field and there I need to get a typ match with the values from the office365 users and that is not working if there can be multiple users.

This is the default selected item for another value, but that are predefined values:

Filter(
["EU"; "NAR"; "RDW"; "CHN"; "Unknown"];
Value in Split(LookUp(Fehlerstatus; Titel = Gallery2.Selected.Title).AffectedMarkets; ",").Value
)

I want to have something like that for mutiple values, but something like this doesn't work:

ForAll(
Split(LookUp(UserList, Titel = Gallery2.Selected.Title).UserField, ","),
LookUp(Office365Users.SearchUser(), DisplayName = Trim(Result) || Mail = Trim(Result))
)

Do you have any idea?

LookUp('Office365-Benutzer'.SearchUser(); DisplayName = LookUp(Fehlerstatus; Titel = Gallery2.Selected.Title).RequirementOwner)

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @TP1 ,

     

    Could you please share more details about your scenario? What's the type of the column you want to populate? What's the Items property of this Combo box?

     

    Best regards,

     

  • TP1 Profile Picture
    4 on at

    Hi, the data type of the sharepoint list is single line text. On create i push the selected values from the combobox seperated with semicolon to the sharepoint list ( Stakeholder: Concat(Stakeholder.SelectedItems; DisplayName & "; ")). The items property of the stakeholder combobox is this: 'Office365-Benutzer'.SearchUser({searchTerm:Self.SearchText; top:999})

  • TP1 Profile Picture
    4 on at

    The problem is now the edit mode. It is another window, i want to prefill the field of the stakeholder field from the sharepoint list. So i need to seperate the multiple users from the sharepoint list and match them with the values from the office365 users. 

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @TP1 ,

     

    Try below formula in DefaultSelectedItems:

    UnGroup(
     ForAll(
     Split(Parent.Default; ";");
     'Office365-Benutzer'.SearchUser({searchTerm: ThisRecord.Value; top:1})
     );
     "Value"
    )

     

    Best regards,

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard