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

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Office365 User, their Department and Job Title

(0) ShareShare
ReportReport
Posted on by 138

Hiya,

 

I am building an App where a user needs to enter a name of an employee and then two other text boxes pull in that employee's job title and department, how can i do this?

 

** To add i would like to get the list of users from a combobox which i have set up for people to find employees, so once they found that employee then it will populate their data in two other text fields

I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at
    Re: Office365 User, their Department and Job Title

    HI @Gelegeta86 ,

    If you are capturing employee's email ID in a textbox named - TextInput1, then you can use below code to get Job Title and Department:

    JobTitle - Office365Users.UserProfileV2(TextInput1.Text).jobTitle

    Department - Office365Users.UserProfileV2(TextInput1.Text).department

     

    If you are using a combobox control for capturing employees details named- ComboBox3 with Items property set to Office365Users.SearchUserV2({searchTerm:ComboBox3.SearchText,top:100}).value

    Job Title - Office365Users.UserProfileV2(ComboBox3.Selected.Mail).jobTitle

    Department - Office365Users.UserProfileV2(ComboBox3.Selected.Mail).department

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard