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
Helper V
Helper V

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

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (28,482)