Skip to content

Loading folders paginated #1470

Answered by jansenbe
archigo asked this question in Q&A
May 15, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

@archigo : checkout below code, I just enumerated 11K+ folders with it:

                string listTitle = "PNP_SDK_TEST_LargeFolderLibrary";
                var myList = context.Web.Lists.GetByTitle(listTitle);

                string viewXml = @"<View Scope='RecursiveAll'>
                        <ViewFields>
                          <FieldRef Name='Title' />
                          <FieldRef Name='FileLeafRef' />
                          <FieldRef Name='FSObjType'/>
                          <FieldRef Name='FileDirRef'/>
                        </ViewFields>
                         <Query>
                            <And>
                                <Eq><FieldRef Name=""FSObj…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@archigo
Comment options

@jansenbe
Comment options

Answer selected by archigo
@archigo
Comment options

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