Skip to content

Update-MgSiteListItemField renames field #3208

@fug4zi

Description

@fug4zi

Describe the bug

Update a specific field but i get an error that the field not exist.

The field in the error is not the field that i specified
Error: Field 'exteal_users' is not recognized

Expected behavior

The specified field will be updated,

How to reproduce

$values = @{
        "external_users" = "testuser"
}
Update-MgSiteListItemField `
        -SiteId $site_id `
        -ListId $list_id `
        -ListItemId $entry_id `
        -BodyParameter $values

SDK Version

2.26.1

Latest version known to work for scenario above?

2.25

Known Workarounds

Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/v1.0/sites/$($site_id)/lists/$($list_id)/items/$($ntry_id)" -Method PATCH -Body @{'fields' = $values}

Debug output


Error: Field 'exteal_users' is not recognized

Configuration

Name Value


PSVersion 5.1.19041.5486
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.5486
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions