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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Populate a dropdown wi...
Power Apps
Answered

Populate a dropdown with all O365 values

(0) ShareShare
ReportReport
Posted on by 2

I am trying to place a dropdown on a PA that will contain all possible Office Locations from our O365 users. I have the following currently: Sort(Distinct(Office365Users.SearchUser({searchTerm:DataCardValue10.SearchText}).OfficeLocation,OfficeLocation),Value,SortOrder.Ascending)

 

And that does work to return some values, it is only pulling the office locations from the first 100 users, as I now know functions only return 100 rows. So what can I do to return a full list of every office location that is assigned to a user in O365?

And to add, if I want to append in a value to the returned results like "Not Applicable" how would I do that?

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Wegmans 

    Bing sez

    Set the OnStart property of App to following: ClearCollect (MemberCollection, Office365Groups.ListGroupMembers ("Specific Group ID").value) Add a Timer control in your app (in same screen as your Dropdown box), set the Duration property to following: 1000 set the AutoStart and Repeat property of the Timer control to following: true

  • Wegmans Profile Picture
    2 on at

    I want it to pull from all O365 users, not just one group. Is there a Group ID that includes all users?

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Wegmans ,

     

    If there are less than 999 users in your org you could try:

    Sort(Distinct(Office365Users.SearchUser({searchTerm:DataCardValue10.SearchText,top:999}).OfficeLocation,OfficeLocation),Value,SortOrder.Ascending)

     

    If there are more than 999 users in your org you could try this solution:

    Solved: GET ALL USER FORM OFFICE 365 - Power Platform Community (microsoft.com)

     

    Best Regards,

    Bof

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 602

#2
WarrenBelz Profile Picture

WarrenBelz 473 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 310

Last 30 days Overall leaderboard