Last active
March 25, 2022 15:12
-
-
Save aflyen/6882a3c2e76a255de938b40dd951e626 to your computer and use it in GitHub Desktop.
CAML Query for use with Get-PnPListItem to find all files older than a specific date in a library (https://pnp.github.io/powershell/cmdlets/Get-PnPListItem.html)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<View Scope='RecursiveAll'> | |
<ViewFields> | |
<FieldRef Name='FileLeafRef'/> | |
<FieldRef Name='Modified'/> | |
</ViewFields> | |
<Query> | |
<Where> | |
<Leq> | |
<FieldRef Name='Modified'/> | |
<Value Type='DateTime'>2022-03-25</Value> | |
</Leq> | |
</Where> | |
</Query> | |
</View> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment