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

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: Powered On

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