pnp/script-samples

💡Query advanced CSOM properties with PnP PowerShell

Closed this issue · 0 comments

Query advanced CSOM properties with PnP PowerShell.
PowerShell supports .NET types and can even compile C# code, so in cases where having as few as possible CSOM queries is needed (for example tenant inventory with 10'000+ site collections), one can rely to C# CSOM and call a single Invoke-PnPQuery instead of multiple Get-PnPProperty calls. This supports C# LINQ Include to traverse the tree of properties.