Skip to content

Latest commit

 

History

History
95 lines (71 loc) · 1.88 KB

Add-PnPListItemComment.md

File metadata and controls

95 lines (71 loc) · 1.88 KB
Module Name schema applicable online version external help file title
PnP.PowerShell
2.0.0
SharePoint Online
PnP.PowerShell.dll-Help.xml
Add-PnPListItemComment

Add-PnPListItemComment

SYNOPSIS

Adds a comment to the specified list item in the SharePoint list

SYNTAX

Single

Add-PnPListItemComment [-List] <ListPipeBind> [-Identity] <ListItemPipeBind> [-Text] [-Connection <PnPConnection>] 

DESCRIPTION

Allows to add comment to the specified list item.

EXAMPLES

EXAMPLE 1

Add-PnPListItemComment -List "Demo List" -Identity "1" -Text "Hello world"

Adds a new comment to the list item with Id "1" in the "Demo List" SharePoint list.

PARAMETERS

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: PnPConnection
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Text

Specify text of the comment for the list item.

Type: String
Parameter Sets: (All)

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-List

The ID, Title or Url of the list.

Type: ListPipeBind
Parameter Sets: (All)

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Identity

The ID of the listitem, or actual ListItem object

Type: ListItemPipeBind
Parameter Sets: (All)

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

RELATED LINKS

Microsoft 365 Patterns and Practices