web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sharepoint List to col...
Power Apps
Unanswered

Sharepoint List to collection only collects 1 row.

(1) ShareShare
ReportReport
Posted on by 15

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!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    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

  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    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.

  • Verified answer
    SanderWi Profile Picture
    15 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard