Query Lists using CAML #541
-
Hi, I want to query a list multiple times - so I'm creating a CAML-query and then executing await myList.LoadItemsByCamlQueryAsync(viewXml)
var foundItems = myList.Items.AsRequested(); This works fine the first time, but when I repeat this with a modified viewXml (especially when viewXml will not return a result), my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@henningeiben: The method you've used is a "Load" method and the loaded data is kept in our domain model (see https://pnp.github.io/pnpcore/using-the-sdk/basics-getdata.html for more background). You can simply clear the model ( |
Beta Was this translation helpful? Give feedback.
@henningeiben: The method you've used is a "Load" method and the loaded data is kept in our domain model (see https://pnp.github.io/pnpcore/using-the-sdk/basics-getdata.html for more background). You can simply clear the model (
myList.Items.Clear()
) before the next attempt to get the desired result.