I try to build a new powerapps but I have some difficulty to make it.
I set a comboBox to connect to a sharepoint list. Once item is selected, the goal is to get value from the field "ownerstxt" . This field contains a list of concatened mail users separated by ",".
I try to display my result in a gallery and would add more informations like displayname, derpartment and companyName and even if available the photo.
I added this formule on the event "OnChange" from the Combobox :
My collection "CollectUsers" return only the first user. I doesn't understand why it not loop on others users ?
If I try whihout the connector o365User I have all my users in the collection.
Can you explain me where i'm wrong ?
Hi @Anonymous :
Could you tell me what 'Utilisateursd' is?
I made a similar test but did not encounter the problem you mentioned.
Here is my solution:
1\add a Office 365 User connection
Data sources-Connectors-Office 365 Users-Add a connection
2\add a button control and set it’s OnSelect Property to:
ClearCollect( collectUsers, ForAll( Split( "firstname.lastname@example.org,email@example.com", "," ), Office365Users.UserProfileV2(Result) ) )
You can also try this code:
ForAll( Split( ComboBox1.Selected.OwnerTxt, "," ), Collect(collectUsers,Office365Users.UserProfileV2(Result)) )
In addition, I suggest you check these following things: