I would like to translate the code below that is made with the commands from module Microsoft.Online.SharePoint.PowerShell to PnpPowerShell. Is that possible?

#Get the Target List
$list = $web.Lists["MyList"]
#Get the View
$view = $list.Views["ToPrint"] 

#Get All items from the view
$items = $list.GetItems($view)

Gr, P


1 Answer 1


No, pnp does not support querying a list based on a view, though it does support using a caml query.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.