LoadAsync will only get 100 items, instead of all items #1400
-
I have this .net 8.0 console application and i am trying to get all sharepoint list items (around 20,000) using the LoadAsync method, as follow:- static async Task Main(string[] args)
but the inMemoryWorkOrderList only contained 100 items, although based on the docs inside this link @ https://pnp.github.io/pnpcore/using-the-sdk/basics-getdata-paging.html#full-load-of-items that LoadAsync will get all items from sharepoint through paging requests. any advice? how i can get all items in one call? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@mvcsharepointdev: this is the default behavior for that approach. Use options B, C or D (https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#reading-list-items) if you need paging to iterate across large amount of items |
Beta Was this translation helpful? Give feedback.
@mvcsharepointdev: this is the default behavior for that approach. Use options B, C or D (https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#reading-list-items) if you need paging to iterate across large amount of items