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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Skipping top 300 from get items

(0) ShareShare
ReportReport
Posted on by 320 Moderator
hi,
 
I need to skip first 300 list items with sharepoint get items. is it possible?
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,908 Super User 2025 Season 2 on at
    Skipping top 300 from get items
    That should be possible. One question, do you delete items from the list? If not, then just add a filter query where ID gt 300.
     
    If items can be deleted, you'll use a similar filter query, but you will need to calculate the number for the gt condition. To do that:
    • Add an integer variable and name it FilterValue
    • Add a Get items action to your list and sort it by ID asc and limit it to returning 300 items
    • Add a condition and use a length expression to check that 300 items were returned.
      • ​​​​​​​If less than 300 items are returned, then no exclusion is required.
      • This isn't needed if you know your list already has more than 300 items.
    • Add a Set variable action and set the FilterValue to the value of the 300th item.
      • This expression should work: int(body('Get_items')?['value'][299]?['ID'])
    • You can then add another Get items action and filter it to where ID gt FilterValue
    I have not tested this, but it should work. 
  • Verified answer
    arcado Profile Picture
    320 Moderator on at
    Skipping top 300 from get items
     
    hi,
    skip(outputs('Get_items')?['body/value'], 300) function is working. thank you for your support. :)

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

Coming soon: forum hierarchy changes

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 Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard