cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Too Many employees in a ad group to show up in drop down menu

I need to make a dropdown that shows employees in a certain AD group. The problem is the group has more than 100 employees and I know there is a limation for the dropdown to be about 100 I believe. The other way I was thinking was to create a text input and the user types in a person's name and that name should be able to pop up into the dropdown from the ad group. I was able to do with office365Users but some reason cant figure out a way to do it with Office365Users 

 

The code i used to with the office365users is  to link it to a text input. 

Office365Users.SearchUser({searchTerm: TextInput1.Text})

 

I know if i have the user type in a name through the text input it is a way to have about 999 choices for the drop down. When the user types in a name in the text input I need the dropdown to be searching the ad group to see if the person even exists in the dropdown. 

I just don't know that code that would let me link up the dropdown to the text input to let you search through the ad group.

currently i am using this code 

 

Office365Groups.ListGroupMembers("GroupID").value

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

@alex5p 

Try - 

Office365Users.SearchUser({searchTerm: TextInput1.Text,top:999})

 

View solution in original post

7 REPLIES 7
Dual Super User II
Dual Super User II

Hi @alex5p 

 

Replace dropdown control with combobox control (and set SelectMultiple property to false)

 

Regards,

Reza Dorrani

 

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

 

 

Helper IV
Helper IV

When I read your post/question I think of this video https://www.youtube.com/watch?v=FaTnOOc34os&list=PLCGGtLsUjhm2bonhBZuEhZU72QkFjOpc6&index=15. I hope it might help you!

problem with using the combobox is it only limits to about 100 people I am missing about 20 people from the list. 

@alex5p 

Try - 

Office365Users.SearchUser({searchTerm: TextInput1.Text,top:999})

 

View solution in original post

I'm sorry! I grabbed the wrong video... I did mean to grab this one... https://www.youtube.com/watch?v=QhGV4AhCFRc&list=PLCGGtLsUjhm2bonhBZuEhZU72QkFjOpc6&index=51

About the 8 minute mark if you don't want the preliminary talk. 

@RezaDorrani  Do you know if it's possible just have it search through office365groups instead? so the user will only be able to search through a certain group instead of the whoel company?

Hi @alex5p 

 

In that case , use Office 365 groups connector to get all group members for a particular group

 

Regards,

Reza Dorrani

 

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (4,008)