Get all folders from folder #378
Unanswered
pINKmUNster
asked this question in
Q&A
Replies: 2 comments 1 reply
-
There's no easy way doing this non-recursively as there are no SharePoint folder API's that do the traversal server side. One option to play with is doing a CAML based retrieval of the folders (https://pnp.github.io/pnpcore/using-the-sdk/listitems-intro.html). You can filter on folders using below CAML snippet (not tested by me): <View Scope='RecursiveAll'><Query><Where><Eq><FieldRef Name='FSObjType'/><Value Type='Integer'>1</Value></Eq></Where></Query></View> |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, thank a lot. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Does the SDK provide a method to get all folder hierarchy from a specified folder?
Right now I am making this recursively but it's take a lot time and make a lot of call to SharePoint.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions