cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Sharepoint List to collection only collects 1 row.

Hi,

 

I have a SharePoint list which contains a lot of data > 2000 rows. 
Because of this now our PowerApp doesn't show all items due to delegation issues. 

 

I'm trying to fix this issue by loading the list into a collection(ColLead). The list(Leads) contains a column named "LeadNumber" it is a combination of both "Year"-"ID". I which to load the collection with all the Leadnumbers starting with "year" which I type into a text field (txtLeadJaar) and Load the collection pressing a button (btnLoadLead). I do this to make sure not to much rows are loaded into the collection.

I use the below code on 'OnSelect' of btnLoadLead to get the information into the collection.
txtLeadJaar contains the string "2020" in this example.

 

 

ClearCollect(ColLead;Filter(Leads;StartsWith(LeadNumber;txtLeadJaar.Text)))

 

 

This works, but my gallery only shows 1 row with Leadnumber "2020-001" all other rows aren't showing.
If I check the collection in preview it only shows 1 row aswel.

 

Any Idea's what i'm doing wrong? Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Regular Visitor

Re: Sharepoint List to collection only collects 1 row.

Thank your for reply.

 

I was able to find the solution. The query limit was set to 1. Resulting in the query only getting one row.

I changed this back to 500 and this resolved the issue.

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: Sharepoint List to collection only collects 1 row.

Hi @SanderWi ,

Some investigation needed here - I replicated your structure as below - please confirm if anything is different.

Items of Gallery

Filter(
   TestFields,
   StartsWith(
      TextTest,
      TextInput9.Text
   )
)

TxtNoFilter.gif

Highlighted
Super User III
Super User III

Re: Sharepoint List to collection only collects 1 row.

Hi @SanderWi ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Regular Visitor

Re: Sharepoint List to collection only collects 1 row.

Thank your for reply.

 

I was able to find the solution. The query limit was set to 1. Resulting in the query only getting one row.

I changed this back to 500 and this resolved the issue.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,613)