cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Draax
Level 8

Make a collection from images on a SharePoint List

Hi,

 

I have a gallery with 100 items from a sharepoint list. The list has an attatchment of an image of the item.

 

In the Gallery the image uses this code:

First(ThisItem.Attachments).Value

The code makes the app slow since I dont think PowerApps caches the image but loads it everytime, if i use a local image the gallery works flawless.

 

To fix the issue I guess i have to download the entire list with: 

ClearCollect(Lager_Local, Lager)

however it will not save the attatchments.

 

Is there a way I can download the images into a collection and make the image LookUp the local collection?

Or how should I approch this?

 

Thanks in advance - draax

 

 

 

 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Make a collection from images on a SharePoint List

Hi @Draax ,

 

I just tested with the same formula in image control inside gallery control and I cannot reproduce your issue. The images loads quickly. Have you made sure that you have taken the advantage of delegation in the Items property of Gallery control? Please share this formula and make sure that there is no delegation warning:

Capture.JPG

 

About delegation, please refer to documentation here:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Draax
Level 8

Re: Make a collection from images on a SharePoint List

Hello and thanks for your reply!

 

The formula on the gallery im using are:

Search(Filter(Artiklar,Avtal.Value = "Köp",EOL = false),TextInput_ItemSearch.Text,"Title")

 

The SP list "Artiklar" does not contain more than 100 items.

 

Draax

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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

Top Kudoed Authors
Users Online
Currently online: 171 members 4,249 guests
Please welcome our newest community members: