cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Julien2
Super User
Super User

Dealing with 12k+ records in a dropdown/combobox

Hello everyone,

I have a SharePoint list that contains records of companies with more than (12k+) records.

In the Power apps canvas app, I have a Combobox that displays only the Companies Names.

The problem is the following:

If I searched for a company its ID for example 12828 it returns nothing (Blank), whereas if I searched for a company >2000 it returns the company I am looking for.

I have tried the below On-AppStart:

Concurrent(

ClearCollect(CollectionA,Filter('Sales Companies List', ID<2000)),
ClearCollect(CollectionB,Filter('Sales Companies List',ID >=2000 && ID<4000)),
ClearCollect(CollectionC,Filter('Sales Companies List',ID >=4000 && ID<6000)),

ClearCollect(CollectionD,Filter('Sales Companies List',ID >=6000 && ID<8000)),

ClearCollect(CollectionE,Filter('Sales Companies List',ID >=8000 && ID<10000)),

ClearCollect(CollectionF,Filter('Sales Companies List',ID >=10000 && ID<12000)),

ClearCollect(CollectionG,Filter('Sales Companies List',ID >=12000 && ID<14000));

ClearCollect(CollectionH,Filter('Sales Companies List',ID >=14000 && ID<15000));
);

ClearCollect(ListOfCompanies,CollectionA,CollectionB,CollectionC,CollectionD,CollectionE,CollectionF,CollectionG,CollectionH)

After that, on the combo box, I have assigned its Items property to display only the company name of the Merged collection which is ListOfCompanies.Company Name.

I have added a label and checked for the returned rows of ListOfCompanies it returns 2000 only.
Please have a look at the demo below:

Demo.gif

How to deal with this issue to display whatever I am looking for even if the company is on 13000 record ID?

Can please someone explain in detail and provides an example to achieve the above scenario?

Any help will be greatly appreciated.

Thank you!

11 REPLIES 11
Yazeed_Ablan
Helper II
Helper II

Good Evening 

Did you find any solution on this case ? 

 

Julien2
Super User
Super User

Hi @Yazeed_Ablan ,

I highly recommend you to watch the below videos by the best @RezaDorrani @KrishnaV :

Hope the above will help you!
Best regards,
Julien

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,294)