Hi all,
I've a peoplepicker in PowerApps and some field that show additional data from the choosen/selected person i.e. companyname, location...
I would like to display the value for the street as well, but street is not offered.
What do I need to do to / check?
Solved! Go to Solution.
Hi @Frankie70 ,
1)Firstly, please create connection with office365 users.
2)since you set the combo box items to Office365Users.SearchUser function, so you need to make some changes.
set company textinput's Default like this:
Office365Users.UserProfileV2(ComboBox3.Selected.Mail).companyName
set city textinput's Default like this:
Office365Users.UserProfileV2(ComboBox3.Selected.Mail).city
set country textinput's Default like this:
Office365Users.UserProfileV2(ComboBox3.Selected.Mail).country
//please replace with your combo box name.
Best regards,
Do you want to show street on the people picker or you want it in a Textbox.
Also kindly show a screenshot of the Drop-down items property
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @eka24
All field are filled perfectly, but not the street...because I can not find it...
Kind regrads
Frank
Hi @Frankie70 ,
Do you want to get street value from person field?
The reason why you could not directly get these values from person field is that person field does not include those values.
Person field only includes these fields:
Department, DisplayName, Email, JobTitle
Date like company,street,city, country are all not included.
To get these data by using person field, you need to use Microsoft 365 Users connector and Microsoft365Users.UserProfileV2 function, which will return a table includes these fields: company,street,city, country.
Please notice that: Microsoft365Users.UserProfileV2 function will return the user's profile in his azure ad profile.
If his azure ad profile does not has these data, you will still get blank value.
You should set like this:
1)connect with Microsoft 365 Users
2)set the person field's Items:
Choices(listname.personfieldname)
3)set company textinput's Default like this:
Microsoft365Users.UserProfileV2(comboboxname.Selected.Email).companyName
set city textinput's Default like this:
Microsoft365Users.UserProfileV2(comboboxname.Selected.Email).city
set country textinput's Default like this:
Microsoft365Users.UserProfileV2(comboboxname.Selected.Email).country
Best regards,
thank you very much for your answer. Somehow it does not work for me.
I have a combobox configured like this:
And in a textinput box I would like to show the users street name.
I guess I need to modify combobox setting. Can you give me a hint?
@Frankie70 ,'
You need to add it as a data source in Connectors.
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.
Hi @Frankie70 ,
1)Firstly, please create connection with office365 users.
2)since you set the combo box items to Office365Users.SearchUser function, so you need to make some changes.
set company textinput's Default like this:
Office365Users.UserProfileV2(ComboBox3.Selected.Mail).companyName
set city textinput's Default like this:
Office365Users.UserProfileV2(ComboBox3.Selected.Mail).city
set country textinput's Default like this:
Office365Users.UserProfileV2(ComboBox3.Selected.Mail).country
//please replace with your combo box name.
Best regards,