Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 607 Bytes

File metadata and controls

22 lines (12 loc) · 607 Bytes

Example 1: Get list items with specific fields

Import-Module Microsoft.Graph.Beta.Sites

Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" 

This example will get list items with specific fields

Example 2: Get filtered list items with specific fields

Import-Module Microsoft.Graph.Beta.Sites

Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" -Filter "fields/Quantity lt 600" 

This example will get filtered list items with specific fields