cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Regular Visitor

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
Super User III
Super User III

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

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.

Regular Visitor

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
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (94,675)