Skip to main content
Get List Item
Updated over 2 weeks ago

Command

Get-ListItem

Description

The command to get items from a SharePoint list.

Examples

Get list item from list

$site = Connect-Site -Url "http://myfarm/sites/mysite/"
$list = Get-List -Site $site -Name "MyList"
Get-ListItem -List $list -Id 21Title    : My List Item
List     : Sharegate.Automation.Entities.List
Address  : http://myfarm/sites/mysite/Lists/MyList/21_.000
Site     : http://myfarm/sites/mysite/

Syntax

Get-ListItem-List <List> 
-Id <Int32>

Parameters

-Id <Int32>

Specifies the list item's ID.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

-List <List>

Specifies the SharePoint list.

Required?

True

Default value

None

Accept pipeline input?

True (ByValue)

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

Did this answer your question?