cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Courtney
Level: Powered On

Office 365 User Search and Select

So i've spent the best part of the day trying to do this with no luck so I'm back to ask the professionals again! 

 

Please have alook below and point me in the right direction is possible! Smiley Frustrated

 

In a nutshell I need the image below to allow the app user to search (nomineesearch_1) through office 365 users which will be displayed via the gallery (nomineegal_1). When they start to type, the gallery should filter the names down and when they (onselect) the filtered name it should move to another gallery (TextInput1) entry as only the name with an icon to delete it incase the user has made a mistake. 

When the user chooses the name the search box should also reset ready for another search "if needed" 


Solution.png

 

When the user presses Continue (continuebutton1_1) the name collected from text input one need to be displayed on the next page as a list. 

I'd like it work very closely to the New Screen/People page but I cant seem to even connect my gallery to the data source like it does with this page so this is for anyone looking for a real challenge that can break it down into an easy to digest guide for me. 

If you've come this far and can help. Thanks in advance! Smiley Very Happy

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
K-A-R-L
Level 10

Re: Office 365 User Search and Select

Hi @Courtney ,

 

On your TextInput1 (Gallery with collected Names):

Set Items to:

SelectedNames


Add a label to this gallery and set the Text to:

ThisItem.Names

Add the eraser Icon here and set the OnSelect Property to:
Remove(SelectedNames, ThisItem)

On nomineegal_1:

 

Set Items to:

If(IsBlank(TextInput1.Text), Office365Users.SearchUser({searchTerm:""}),If(Not(IsBlank(Trim(TextInput1.Text))),Office365Users.SearchUser({searchTerm:Trim(TextInput1.Text)})))

 

Add Label here set the Text to:
ThisItem.DisplayName

 

Set OnSelect Property to:

Set(SelectedName, ThisItem.DisplayName);
Collect(SelectedNames, {Names:ThisItem.DisplayName})

 

For you continuebutton1_1: just add Navigate(to the next screen)


On the next screen just set the Item of the Gallery (list) to the collection SelectedNames.

Please check this video.


Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

3 REPLIES 3
Highlighted
K-A-R-L
Level 10

Re: Office 365 User Search and Select

Hi @Courtney ,

 

On your TextInput1 (Gallery with collected Names):

Set Items to:

SelectedNames


Add a label to this gallery and set the Text to:

ThisItem.Names

Add the eraser Icon here and set the OnSelect Property to:
Remove(SelectedNames, ThisItem)

On nomineegal_1:

 

Set Items to:

If(IsBlank(TextInput1.Text), Office365Users.SearchUser({searchTerm:""}),If(Not(IsBlank(Trim(TextInput1.Text))),Office365Users.SearchUser({searchTerm:Trim(TextInput1.Text)})))

 

Add Label here set the Text to:
ThisItem.DisplayName

 

Set OnSelect Property to:

Set(SelectedName, ThisItem.DisplayName);
Collect(SelectedNames, {Names:ThisItem.DisplayName})

 

For you continuebutton1_1: just add Navigate(to the next screen)


On the next screen just set the Item of the Gallery (list) to the collection SelectedNames.

Please check this video.


Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

Community Support Team
Community Support Team

Re: Office 365 User Search and Select

Hi @Courtney 

 

Could you please reference @K-A-R-L 's suggestion firstly, if the issue is fixed, please accept that as soltuion.

 

More information:

connection-office365-users#search-for-users

 

Best Regards.

Yumia

Courtney
Level: Powered On

Re: Office 365 User Search and Select

Can't give more than one thumbs up myself. Thanks so much for this. 

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,176)