Skip to content

Update-MgSiteListItemField Doesn't Work #3600

@12Knocksinna

Description

@12Knocksinna

Describe the bug

I am trying to use the Update-MgSiteListItemField cmdlet to update a field in a SharePoint list item. The cmdlet succeeds (no error) but nothing happens. Running the Graph request with Invoke-MgGraphRequest works.

Expected behavior

I expect the field in the site list item to be updated by the cmdlet.

How to reproduce

$NewFields = @{}
$NewFields.Add("Username", "Ben Lee")

$ListItemId = '6'
$Response = Update-MgSiteListitemField -ListId $List.Id -ListItemId $ListItemId -SiteId $Site.Id -BodyParameter $NewFields -ErrorAction Stop

  • Fails (no update)

$Uri = ("https://graph.microsoft.com/v1.0/sites/{0}/lists/{1}/items/{2}/fields" -f $Site.Id, $List.Id, $ListItemId)
Invoke-MgGraphRequest -Uri $Uri -Method PATCH -Body $NewFields

  • Succeeds. Same payload, same list id...

SDK Version

2.36.1

Latest version known to work for scenario above?

Unknown

Known Workarounds

Use Graph request

Debug output

HTTP Method:
PATCH

Absolute Uri:
https://graph.microsoft.com/v1.0/sites/redmondassociates.sharepoint.com%2Cacfe74d8-edfb-436d-924b-e018666605ee%2Ca2aba197-5f1d-4864-a2c7-4daf0ff6379b/lists/fbb2de65-ea1a-4c6f-9392-063b4ffcf4aa/items/6

Headers:
FeatureFlag : 00000003
Cache-Control : no-store, no-cache
User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.26200; en-IE),PowerShell/7.6.1
SdkVersion : graph-powershell/2.36.1
client-request-id : b01f4f13-cda5-4967-a73b-3298b777f69e
Accept-Encoding : gzip,deflate,br

Body:
{
"Username": "Ben Lee"
}

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control : no-cache
ETag : "7f93f3b1-90ca-4ba7-adce-43ee1785781f,8"
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 6b549be0-6e20-48e6-a327-0507e5af2dca
client-request-id : b01f4f13-cda5-4967-a73b-3298b777f69e
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"North Europe","Slice":"E","Ring":"4","ScaleUnit":"010","RoleInstance":"DB1PEPF000BA273"}}
splogid : 9d5c10a2-503b-a000-16d3-2631d8591cf6
odata-version : 4.0
Date : Mon, 04 May 2026 15:30:44 GMT

Body:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('redmondassociates.sharepoint.com%2Cacfe74d8-edfb-436d-924b-e018666605ee%2Ca2aba197-5f1d-4864-a2c7-4daf0ff6379b')/lists('fbb2de65-ea1a-4c6f-9392-063b4ffcf4aa')/items/$entity",
"@odata.etag": ""7f93f3b1-90ca-4ba7-adce-43ee1785781f,8"",
"createdDateTime": "2026-04-20T16:44:52Z",
"eTag": ""7f93f3b1-90ca-4ba7-adce-43ee1785781f,8"",
"id": "6",
"lastModifiedDateTime": "2026-05-04T15:30:45Z",
"webUrl": "https://redmondassociates.sharepoint.com/sites/O365ExchPro/Lists/Planner%20Task%20Burndown/6_.000",
"createdBy": {
"user": {
"displayName": "SharePoint App"
}
},
"lastModifiedBy": {
"application": {
"id": "14d82eec-204b-4c2f-b7e8-296a70dab67e",
"displayName": "Microsoft Graph PowerShell"
},
"user": {
"email": "Tony.Redmond@redmondassociates.org",
"id": "eff4cd58-1bb8-4899-94de-795f656b4a18",
"displayName": "Tony Redmond"
}
},
"parentReference": {
"id": "c7142fbc-ed07-430c-8a06-780655d1ce88",
"siteId": "redmondassociates.sharepoint.com,acfe74d8-edfb-436d-924b-e018666605ee,a2aba197-5f1d-4864-a2c7-4daf0ff6379b"
},
"contentType": {
"id": "0x0100E0C23798F09A8D48AEF4C79EF9CDECCE008D6A5AB1E014D547963D51F206398C72",
"name": "Item"
},
"fields@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('redmondassociates.sharepoint.com%2Cacfe74d8-edfb-436d-924b-e018666605ee%2Ca2aba197-5f1d-4864-a2c7-4daf0ff6379b')/lists('fbb2de65-ea1a-4c6f-9392-063b4ffcf4aa')/items('6')/fields/$entity",
"fields": {
"@odata.etag": ""7f93f3b1-90ca-4ba7-adce-43ee1785781f,8"",
"Title": "310e60f7-f1a0-48ec-8e63-630a86fa42b2",
"LinkTitle": "310e60f7-f1a0-48ec-8e63-630a86fa42b2",
"RunDate": "2026-04-20T15:44:00Z",
"Plan": "MAC Tasks",
"Tasks": 16.0,
"Averagedaysoutstanding": 75.69,
"UPN": "Ben@bibblenet.com",
"Username": "Ben Lee",
"id": "6",
"ContentType": "Item",
"Modified": "2026-05-04T15:30:45Z",
"Created": "2026-04-20T16:44:52Z",
"AuthorLookupId": "1073741822",
"EditorLookupId": "3",
"_UIVersionString": "8.0",
"Attachments": false,
"Edit": "",
"LinkTitleNoMenu": "310e60f7-f1a0-48ec-8e63-630a86fa42b2",
"ItemChildCount": "0",
"FolderChildCount": "0",
"_ComplianceFlags": "",
"_ComplianceTag": "",
"_ComplianceTagWrittenTime": "",
"_ComplianceTagUserId": "",
"AppAuthorLookupId": "100",
"AppEditorLookupId": "57"
}
}

DEBUG: [CmdletEndProcessing]: - Update-MgSiteListItem end processing.

</details>


### Configuration


Name                           Value
----                           -----
PSVersion                      7.6.1
PSEdition                      Core
GitCommitId                    7.6.1
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions