Skip to content

Call multiple time LoadItemsByCamlQueryAsync return wrong result #946

Answered by jansenbe
necik11 asked this question in General
Discussion options

You must be logged in to vote

@necik11 : this is expected behavior. When you use a "Load" method we'll load the data into the in memory PnPContext object, for example if you need paging then each page is requested and added so that at the end you've a complete set of rows. If you don't want that behavior the simplest solution is to clear the loaded items before the next invocation of LoadItemsByCamlQuery as is shown in here: https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html#using-paging-with-loaditemsbycamlquery

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@necik11
Comment options

Answer selected by necik11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants