Skip to content

"LOAD ALL THE THINGS" via CAML or DataStream #454

Answered by jansenbe
DaleyKD asked this question in Q&A
Discussion options

You must be logged in to vote

@DaleyKD :

Batching up the GetFileByServerRelativeUrl requests should reduce the 429's, PnP Core SDK will automatically split your batches if they're too big.

Below approach might however be a better solution (thanks for adding the extra properties 👍 ) for your needs, although it's not using LoadDataAsStream. Note that we do automatically page per 100 using this approach, so you would make a single call per 100 items in a library and request all the information you'd need for file/folder/listitem:

await foreach(var item in list.Items.QueryProperties(p => p.Id, p => p.Title, p => p.FileSystemObjectType,
                                                     p => p.ContentType.QueryProperties(c 

Replies: 1 comment 1 reply

Comment options

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

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