Hi
To display images from a multi-select Person type column in your PowerApps gallery,I follow these steps:
If(
ThisItem.LT_Owner.SelectedItems.Count > 0,
Office365Users.UserPhotoV2(First(ThisItem.LT_Owner.SelectedItems).Email),
// Placeholder image/error handling
)
But its showing an error
Could anyone pleas ehelp me to fix this issue
Hi @Danny_Dicaprio ,
So, you need to display user pictures as many as the users in each field. You can use a sub-Gallery inside the main Gallery template, use below formula for the Items of sub-Gallery:
ThisItem.LT_Owner
and then add the formula for the Image control in sub-Gallery:
ThisItem.Picture
Nested Galleries tutorial:
Best regards,
Hi @v-jefferni
Thanks for the reply, I tried using that but ist showing some error.
Instead, I tried adding First(ThisItem.LT_Owner).Picture It helps me to retrieve the first user image perfectly.
But if I want to retrieve the image of the second user, how do I do it ?
Hi @Danny_Dicaprio ,
Please try below codes:
If(
CountRows(ThisItem.LT_Owner) > 0,
Office365Users.UserPhotoV2(First(ThisItem.LT_Owner).Email),
SampleImage
)
Best regards,
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional