-
I would like to loop into all documents from all libraries in a sitecollection. I try below, but is not working. How to do this? I would like to avoid folders and would like to use recursive and itemtype file.
|
Beta Was this translation helpful? Give feedback.
Answered by
Barbarur
Nov 29, 2024
Replies: 1 comment 6 replies
-
What if instead of using Get-PnPFolderItem, you use Get-PnPListItem? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've reviewed the docs. -Identity is asking for the instance of the folder, but you have been using the Title or the list itself.
You can try using $library.rootfolder
Otherwise you can trim the library url, trim it and use the parameter -FoldersiterelativeUrl