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 / Show multiple users pi...
Power Apps
Answered

Show multiple users pictures on multiple screens and galleries.

(0) ShareShare
ReportReport
Posted on by

I have about 5 screens and in each screen I have about 4-5 galleries in which I am displaying user image. But the problem is that each time I navigate to a screen or show a gallery the app is fetching the images of hundreds of users from the server which makes the app really slow. The formula I am using Is following.

If(
 !IsBlank(ThisItem.PersonFieldName.Email), 
 Office365Users.UserPhotoV2(ThisItem.PersonFieldName.Email)
)

I have tried to store the images in a collection and it is working in the web but when I use the app from MS Teams the images does not show. 
What should I do to make the app work smoothly. 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Anonymous :

    I tried to save all users' pictures into a collection, and tested it with Teams, and it worked.

    I've made a test for your reference:

    1\Set the app's OnStart property to:

    ClearCollect(
     TheCollection,
     AddColumns(
     Office365Users.SearchUser(),
     "UserPhoto",
     If(
     !IsBlank(Mail),
     Office365Users.UserPhotoV2(Mail)
     )
     )
    )

    This formula may report an error, but it does not affect the use (because searchuser will return guest users, but userphoto will report an error when searching for guest users)

    1.JPG

    Best Regards,

    Bof

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard