Get-PnpListItem to retrieve all items in a specific list, but I would like to restrict the items to only those in a specific view?
Is this possible? Maybe with a CAML query, etc..
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Unfortunately, There is no direct parameter like
-View to specify your
View Name in
Meanwhile, as a workaround solution, you can pass the
CAML Query to the
-Query parameter based on your
Get-PnPListItem -List Tasks -Query "<View><Query><Where><Eq><FieldRef Name='GUID'/><Value Type='Title'>Qassas</Value></Eq></Where></Query></View>
Note: you can build your CAML Query by using U2U tool