Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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  

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: To display images from a multi-select Person type column in your PowerApps gallery

    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,

  • Danny_Dicaprio Profile Picture
    on at
    Re: To display images from a multi-select Person type column in your PowerApps gallery

    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 ? 

     

     

  • v-jefferni Profile Picture
    on at
    Re: To display images from a multi-select Person type column in your PowerApps gallery

    Hi @Danny_Dicaprio ,

     

    Please try below codes:

     

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

     

     

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard