문제

Is there an easy way to get all list elements that have the same value in a column?

Let's say I have a list with a column called system.

Is there a possibility to get all items with the value "Windows" in the system column?

I could not find any parameter of Get-PnPListItem that could fit.

도움이 되었습니까?

해결책

You can use -Query parameter to filter the list items by using CAML Query.

Reference: Get-PnPListItem Examples - Check Example 5.

Try Something like below:

$listItems = Get-PnPListItem -List YOURLISNAME -Query "<View><Query><Where><Eq><FieldRef Name='System'/><Value Type='Text'>Windows</Value></Eq></Where></Query></View>"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top