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 to count total num...
Power Apps
Unanswered

How to count total number of users in office 365 connector using PowerApps

(0) ShareShare
ReportReport
Posted on by

Hello,

 

Is there any way to count Total number of employees in an organization using office 365 connector using PowerApps.

 

Regards,

 

Categories:
I have the same question (0)
  • Tchesco Ayih Profile Picture
    152 on at

    Hi,

    This will help you count the total number of employees in the office 365

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

     

    Hope this helps.

  • Community Power Platform Member Profile Picture
    on at

    Hello @Tchesco ,

     

    I have tried the same formulae but getting the error! My motive is to display the total number of users ,  I have used a label control and applied this formulae on text property of the label

    I have attached the screenshot. Could you please check and help on this?

     

     

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @Anonymous ,

    I am assuming you have a Text Input called TextInput1 ? If you simply want the total number of users

    CountRows(Office365Users.SearchUser({top: 999}))

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • Community Power Platform Member Profile Picture
    on at

    Hello @WarrenBelz ,

     

    Thanks for your response. But there is no Text Input field, there is just a Text Label, I need to display the total number of employees in the Organization using the office 365 connector.

     

    I have checked the formulae, but it is displaying only 999, but is there any way to display the total number of Employees?

     

  • Tchesco Ayih Profile Picture
    152 on at

    @Anonymous 

     

    Put the code inside the text property of your label

    CountRows(Office365Users.SearchUser({top: 999}))
  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    @Anonymous ,

    The maximum number able to be returned is 999 - you can refine the search with another filter such as Department, but you cannot count more than this.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard