Skip to main content
Community site session details

Community site session details

Session Id : imEZxTJ7gG+eecbFOCOkNu
Power Apps - Building Power Apps
Unanswered

Data Row Limit Update

Like (0) ShareShare
ReportReport
Posted on 30 Jun 2023 13:27:26 by 72

I am having a power app setup that pulls data from a share-point list. I have the Gallery setup to show the data from my Sharepoint list. But once my Sharepoint list hits the 2000 limit it does not update any further and it stop showing the list. 

How can I make the power app list to show just the latest 2000 records and or update my sharepoint list to create a power flow to move anything more than 2000 records to a different sharepoint list along with attachments. 

 

  • TheRobRush Profile Picture
    11,121 Moderator on 06 Jul 2023 at 16:55:18
    Re: Data Row Limit Update

    Powerapps is case sensitive and you dont have descending written anywhere in there uncapitalized so I am not sure where this error is coming from. place my code in a notepad and clear the items property of the gallery then start off by TYPING this part, 

    SortByColumns('Stator Hourly Inspection_2',ID,SortOrder.Descending)

    but do it manually so you can see the suggestions as you go. ID is a column on EVERY sharepoint list so it should have been fine to use as the sort. Once you get that part working add the stuff before and after it back in one piece at a time as well.

  • ATUFAILHAASAN Profile Picture
    72 on 06 Jul 2023 at 16:50:38
    Re: Data Row Limit Update

    ATUFAILHAASAN_0-1688662208735.pngATUFAILHAASAN_1-1688662232137.png

     

  • ATUFAILHAASAN Profile Picture
    72 on 06 Jul 2023 at 16:50:37
    Re: Data Row Limit Update

    ATUFAILHAASAN_0-1688662208735.pngATUFAILHAASAN_1-1688662232137.png

     

  • TheRobRush Profile Picture
    11,121 Moderator on 06 Jul 2023 at 16:11:43
    Re: Data Row Limit Update

    *Edit 
        Changed Sort to SortByColumns

  • TheRobRush Profile Picture
    11,121 Moderator on 06 Jul 2023 at 16:04:58
    Re: Data Row Limit Update

    Going to be a lot of delegation issues there, but in the meantime (before jumping to flow) might see if restructuring the filter like so might work better for you

     

    Filter(
    	Filter(
    	 	SortByColumns('Stator Hourly Inspection_2',ID,SortOrder.Descending),
    			And(
    				Created >= DateFrom_1.SelectedDate, 
    				Created <= DateTo_1.SelectedDate
    		 	 )
     		),
     And(			
    			Overall_Status.Text in 'Overall Status 2', 
    			SerialNumberSearch.Text in 'Stator Assembly Serial Number' 
    		)
    	)

     

  • ATUFAILHAASAN Profile Picture
    72 on 06 Jul 2023 at 15:09:50
    Re: Data Row Limit Update

    Hello @TheRobRush ,

     

    This is how I have set my gallery Items. But it still doesnt pull the latest data. 

    Can you help me with how to do the power automate thingy and does it also transfer the attachments? 

    ATUFAILHAASAN_0-1688656109421.png

     

  • TheRobRush Profile Picture
    11,121 Moderator on 30 Jun 2023 at 13:33:39
    Re: Data Row Limit Update

    for starters, make sure you write all the stuff inside powerapps to be delegable. should help with viewing higher number of items (get rid of those yellow !'s) you can also write 

     Sort(listName, ID, SortOrder.Descending)

    and items will be returned to your gallery in reverse order IE) most recent first.

     

    you can also duplicate the list and rename it something like listnameArchive and then have at a certain time of day have powerautomate do a pull on it filtering the odata to anything older than say 60 days and take that and create that in archive list, then remove from original list. can also base that on a completed column etc anything you want really

  • Pstork1 Profile Picture
    67,129 Most Valuable Professional on 30 Jun 2023 at 13:33:11
    Re: Data Row Limit Update

    You can't go higher than the 2,000 records. But you can have the gallery show the latest 2,000 records.  Sort the records by Created or Modified date in Descending order and then take the first 2,000 records. That will be the latest 2,000 records created or modified depending on which date you sort on.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete