cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SoorajDathan
Regular Visitor

User Picture alone and in Gallery

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

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!

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

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!

View solution in original post

TheRobRush
Super User
Super User

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

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,687)