Skip to content

Getting fields with Get-MgSiteListItem #764

Closed
@maryha

Description

@maryha

Perhaps I am doing something wrong, but I cannot seem to get any fields other than Id when getting list items from SharePoint. I have a list with custom columns for Category, Description, and TeamLink, but when I run the following command, all I get back in the "fields" set of properties is "Id":

Get-MgSiteListItem -ListId $listId -SiteId $SiteId -ExpandProperty "fields(`$select=Title,Description,ID,Category)"

Get-MgSiteListItem -ListId $listId -SiteId $SiteId -ExpandProperty "fields" also only returns Id in the set of fields

image

AB#10229

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions