I developed a simple PowerApps for the Employee Directory but I've issue regarding thumbinalPhoto,
when i search for a user i get the following error:
I used the following query in the image object:
i also try to use the v2: Office365Users.UserPhotoV2(ThisItem.Id)
but i get the same error
Based on the issue that you mentioned, do you want to display the user photo?
Could you please share a bit more about the scenario?
Could you please make sure that every user that you want to display the user photo is in your own organization rather than a guest out of your tenant?
I think you should connect the Office365Users to your app.
In my scenario, I have an SP list as my data source.
If everyone in your list has the photo, please try to modify your formula as below:
If( !IsBlank(ThisItem.PersonField.Email), If( Office365Users.UserPhotoMetadata(ThisItem.PersonField.Email).HasPhoto = true, Office365Users.UserPhotoV2(ThisItem.PersonField.Email), SampleImage ) )
Hope it could help.
thanks for your quick reply,
I'm trying to implement a simple employee search form as explained here:
I found issue only for displaying userphoto in the respective box, I used Office365Users as a data source where all users have their respective photo viewable:
I tried your suggestion but I get the following error:
in accordance with docs (https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/screen-templates/people-screen-referenc...) I tried to use also this method:
If( !IsBlank( ThisItem.Id ) &&
'Office365Users'.UserPhotoMetadata( ThisItem.Id ).HasPhoto,
'Office365Users'.UserPhoto( ThisItem.Id )
but i've a new error:
do you have any other suggestions?
Since you have connected to Office365 and use it as your data source, I think there is something different from the solution I provided before.
I have made a test for you and it works great.
In addition, please consider turn on the "Formula-level error management" option within Advanced settings of App settings of your app, then re-published your app, check if the issue is solved.
Check if it helps.
the solution doesn't work but I want to explain my scenario:
we have office365 tenant with hybrid configuration where exchange is on-premises.
in this scenario is it possible that the userphoto is searched in the on-premises exchenge?
Could this possibly explain the BadGateway error?
Power Apps could reach the userphoto stored in on-premises exchenge?
many thanks for your help!
Check out the News & Announcements to learn more.
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.