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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / User Picture alone and...
Power Apps
Answered

User Picture alone and in Gallery

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

When an image control is placed directly on Screen1 and i tried to use User().Image, it loads a single image.

 

But when i tried this into an Image control in a a Gallery, it is repeating 3-4 times with a scroll bar. Need help on how to control the number of occurances listed in a Gallery (used social feed)

 

Can some one also help with what is the differenc between User().Image and Office365Users.UserPhotoV2(User().Email)

 

Thanks,

Sooraj

 

 

Categories:
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @SoorajDathan 

     

    The number of rows that will get displayed in a gallery depends on the Items property of the gallery control. Formula used on first item is replicated to all the other items. In case you have used Office365Users.UserPhotoV2(User().Email) on image, this will copy same image on all the rows since User().Email fetches the current user email id. Can you share the expression used on "Items" property of your gallery control.
     
    The difference between User().Image and Office365Users.UserPhotoV2(User().Email) is that User().Image fetches the Image of current logged in user and Office365Users.UserPhotoV2(User().Email) returns the image of user whose email address is provided as an argument. In this case, User().Email returns current logged in user email address, so currently there is no difference between the two but if this email id is passed as a different one then the images will change.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • TheRobRush Profile Picture
    11,128 Moderator on at

    gallery will repeat as many times as items that are displayed in it.... if you unfiltered display a list of all your employees in it all their pictures will repeat one each.... so if you want a solo record in a gallery you have to filter it to be only the one result

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard