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