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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collecting a SP List i...
Power Apps
Answered

Collecting a SP List in App's OnStart to use the collection in a combobox

(0) ShareShare
ReportReport
Posted on by 41

Hello All,

 

I'm currently trying to collect a list that has a bit over 2000 entries to a collection, to then use this collection as the Items in a combobox. I've tried a number of solutions but it all comes down to the fact that it does not filter past the 2000 elements. Please note that the IDs on my list are past 2700, so it's not a matter of it filtering evenly. Below a thousand there's some and below 2000 others and the rest should be filled with the ones above, but it just brings exactly 2000 elements. Here's the code:

 

 

ClearCollect(colMasterList; [0; 1000; 2000; 3000; 4000; 5000; 6000; 7000; 8000; 9000]);;

Clear(CodigosYNombres);;
ForAll(colMasterList;
	Collect(
 CodigosYNombres;
 Filter('Relacion Codigos y Nombres'; (ID >= Value) && (ID < Value + 1000))
	)
)

 

I don't anticipate it ever reaching around 6000 elements so I'm not calculating intervals based on the last ID, I just want to chunk into a thousand and collect like that. Should this not work?

 

Note: In spanish we use ; as you do , in english, and ;; as ;. This is not the error.

Categories:
I have the same question (0)
  • Verified answer
    ChelsyMena Profile Picture
    41 on at

    Can't seem to find the delete button so I'll comment.

     

    I see reading blogs that the ID field is not delegable, so the issue of the 2000 rows persists. The solution seems to be to make a parallel number field to keep the ID, but it can't be a formulated column because it is also not delegable. You have to populaate this new field with a Power Automate Flow.

     

    With that workaround the final OnStart formula is as follows:

    ClearCollect(colMasterList; [0; 1000; 2000; 3000; 4000; 5000; 6000; 7000; 8000; 9000]);;
    
    Clear(CodigosYNombres);;
    ForAll(colMasterList;
     With({limsup: Value + 1000};
    	 Collect(
     CodigosYNombres;
     Filter('Relacion Codigos y Nombres'; (IDAux >= Value) && (IDAux < limsup)))
    	)
    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard