PnP Poweshell: Get-PnPListItem Restrict to a Specific View

Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
2
down vote
favorite
I'm using Get-PnpList and 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..
list powershell list-view pnp-powershell
add a comment |Â
up vote
2
down vote
favorite
I'm using Get-PnpList and 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..
list powershell list-view pnp-powershell
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I'm using Get-PnpList and 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..
list powershell list-view pnp-powershell
I'm using Get-PnpList and 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..
list powershell list-view pnp-powershell
edited Aug 22 at 2:57
Mohamed El-Qassas MVPâ¦
35k53779
35k53779
asked Aug 22 at 2:32
Kevin M
111
111
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
5
down vote
Unfortunately, There is no direct parameter like -View to specify your View Name in Get-PnPListItem
Meanwhile, as a workaround solution, you can pass the CAML Query to the -Query parameter based on your View setting.
Ex:
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
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
Unfortunately, There is no direct parameter like -View to specify your View Name in Get-PnPListItem
Meanwhile, as a workaround solution, you can pass the CAML Query to the -Query parameter based on your View setting.
Ex:
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
add a comment |Â
up vote
5
down vote
Unfortunately, There is no direct parameter like -View to specify your View Name in Get-PnPListItem
Meanwhile, as a workaround solution, you can pass the CAML Query to the -Query parameter based on your View setting.
Ex:
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
add a comment |Â
up vote
5
down vote
up vote
5
down vote
Unfortunately, There is no direct parameter like -View to specify your View Name in Get-PnPListItem
Meanwhile, as a workaround solution, you can pass the CAML Query to the -Query parameter based on your View setting.
Ex:
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
Unfortunately, There is no direct parameter like -View to specify your View Name in Get-PnPListItem
Meanwhile, as a workaround solution, you can pass the CAML Query to the -Query parameter based on your View setting.
Ex:
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
edited Aug 22 at 2:47
James Randal
776216
776216
answered Aug 22 at 2:41
Mohamed El-Qassas MVPâ¦
35k53779
35k53779
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsharepoint.stackexchange.com%2fquestions%2f247543%2fpnp-poweshell-get-pnplistitem-restrict-to-a-specific-view%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password