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 Platform Community / Forums / Power Apps / Office365 User, their ...
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

Categories:
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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard