cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dcullen
Level: Powered On

Office365Users.UserPhoto request lag when retrieving images

Is there any way to "pre-load" in around 1500 rows of data to a collection and store all images requested from 

Office365Users.UserPhoto

in local memory?

 

The reason I ask is because I am trying to build a gallery and the image comes from the 

Office365Users.UserPhoto('username@domain.com')

request, but there is a significant delay in doing this, for example to retrive 10 images back there is like a 10 second wait time before the image appears in my gallery.

 

If I could somehow pre-load all of the images into the app this may be a better solution. 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Office365Users.UserPhoto request lag when retrieving images

Yes, you could take use of the OnStart property of the first screen to generate the collection:

 

"

OnStart – The behavior of an app when the user opens it or starts to record with a microphone control. Applies to AudioMicrophoneScreen, and Video controls.

"

Property reference.

 

But it will slow down the App loading performance.

For best practice, see:

Performance considerations with PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Office365Users.UserPhoto request lag when retrieving images

Yes, you could take use of the OnStart property of the first screen to generate the collection:

 

"

OnStart – The behavior of an app when the user opens it or starts to record with a microphone control. Applies to AudioMicrophoneScreen, and Video controls.

"

Property reference.

 

But it will slow down the App loading performance.

For best practice, see:

Performance considerations with PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 233 members 4,746 guests
Please welcome our newest community members: