web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / To display images from...
Power Apps
Unanswered

To display images from a multi-select Person type column in your PowerApps gallery

(0) ShareShare
ReportReport
Posted on by

 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 

name isn't , selectedItems isn't recoginized and Inavlid use of '.'

 

Could anyone pleas ehelp me to fix this issue  

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @Danny_Dicaprio ,

     

    Please try below codes:

     

    If(
    CountRows(ThisItem.LT_Owner) > 0,
    Office365Users.UserPhotoV2(First(ThisItem.LT_Owner).Email),
    SampleImage
    )

     

     

    Best regards,

  • Danny_Dicaprio Profile Picture
    on at

    Hi @v-jefferni 

     

    Thanks for the reply, I tried using that but ist showing some error.

    Danny_Dicaprio_0-1706681145638.png

     

     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 ? 

     

     

  • Verified answer
    v-jefferni Profile Picture
    on at

    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:

    powerappstutorial.com

     

    Best regards,

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard