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

Show multiple users pictures on multiple screens and galleries.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard