Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2806 from ToddKlindt/patch-5
Browse files Browse the repository at this point in the history
Update GetListItem.cs examples
  • Loading branch information
erwinvanhunen authored Oct 5, 2020
2 parents 50b9659 + a959dd9 commit f30c7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Lists/GetListItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace PnP.PowerShell.Commands.Lists
Remarks = "Retrieves all list items from the Tasks list in pages of 1000 items",
SortOrder = 7)]
[CmdletExample(
Code = "PS:> Get-PnPListItem -List Tasks -PageSize 1000 -ScriptBlock { Param($items) $items.Context.ExecuteQuery() } | % { $_.BreakRoleInheritance($true, $true) }",
Code = "PS:> Get-PnPListItem -List Tasks -PageSize 1000 -ScriptBlock { Param($items) $items.Context.ExecuteQuery() } | ForEach-Object { $_.BreakRoleInheritance($true, $true) }",
Remarks = "Retrieves all list items from the Tasks list in pages of 1000 items and breaks permission inheritance on each item",
SortOrder = 8)]
[CmdletExample(
Expand Down

0 comments on commit f30c7ad

Please sign in to comment.