sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

List Formatting: `PromotedState` can no longer be updated via `setValue`

Open tecchan1107 opened this issue 10 months ago • 15 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

Declarative list formatting

Developer environment

None

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [x] 💥 Microsoft Edge
  • [x] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

No response

Describe the bug / error

Previously, it was possible to update PromotedState using setValue, which allowed converting a news post into a page and vice versa.

Image

However, when testing this now, a update message is displayed, but the value is not actually updated.

Image

Is this a bug, or was there a change in behavior or specification?

Steps to reproduce

  1. Display the Promoted State column in Site Pages.
  2. Apply the promotedstate-demote-news JSON to the column formatting of the displayed Promoted State column.

Expected behavior

The PromotedState column can be updated using setValue, as it was previously.

tecchan1107 avatar Jan 14 '26 23:01 tecchan1107

Noticed this as well! - the batch call that's being made just has an empty array for fieldvalues

Tanddant avatar Jan 15 '26 13:01 Tanddant

@tecchan1107, Thanks for reporting this issue.

I’ve been able to reproduce the behavior you described in SharePoint Online. As you noted, updating the PromotedState column using setValue via declarative list formatting shows an update message, but the value itself is no longer updated. As This did work previously, so at this point it’s unclear whether this is: an intentional behavior/specification change, or an unintended regression.

I’ll be raising this as a bug and checking with engineering to confirm whether there has been any recent change affecting PromotedState updates. I’ll follow up once I have clarification from the product team. Thanks again for flagging this.

Ashlesha-MSFT avatar Jan 16 '26 07:01 Ashlesha-MSFT

Confirming the same. Noting that the $batch endpoint itself still supports updating the field so the issue is entirely what @Tanddant noted - the field name/value are not passed to the array. This seems to be what happens if you try to reference a field that doesn't exist, so expecting something is impacting ability for that field being recognized. Also tried testing it with multiple other (valid) field values to similar effect - the other field values get included in the $batch request but "PromotedState" is not.

RantingLemming avatar Jan 22 '26 00:01 RantingLemming

@Ashlesha-MSFT Any updates from product team?

janpr01 avatar Feb 02 '26 13:02 janpr01

@janpr01, We’ve discussed this internally with engineering and they have started engagement with the owning team (Lists JSON definition team). At this point, there isn’t a resolution or confirmed fix yet, but the issue is actively being reviewed and tracked as a confirmed bug.

Ashlesha-MSFT avatar Feb 06 '26 05:02 Ashlesha-MSFT

Ok bug confirmation is good at least and not change of behavior...

aaclage avatar Feb 06 '26 06:02 aaclage

@Ashlesha-MSFT any update?

aaclage avatar Mar 02 '26 11:03 aaclage

@aaclage, I’ve tagged the engineering team again. I’ll get back to you as soon as I hear from them.

Ashlesha-MSFT avatar Mar 02 '26 11:03 Ashlesha-MSFT

@Ashlesha-MSFT Hi, it's been a month since the last reply. Have you received any news from the engineering team? This is causing havoc with company news management across multiple site collections.

RCodispotiFTI avatar Mar 31 '26 18:03 RCodispotiFTI

@RCodispotiFTI, Thanks for your continued follow-up on this issue.

It looks like the engineering team has now addressed this — the fix has been merged

Could you please confirm the rollout status for this fix in SharePoint Online?

Appreciate your support on this!

Ashlesha-MSFT avatar Apr 01 '26 04:04 Ashlesha-MSFT

Tested a couple of tenants, still having the same issue.

watana2 avatar Apr 05 '26 22:04 watana2

@watana2, The fix has been merged, but it will take some time to roll out to production in SharePoint Online.

Ashlesha-MSFT avatar Apr 07 '26 05:04 Ashlesha-MSFT

It’s working now. 👍

watana2 avatar Apr 19 '26 04:04 watana2

@tecchan1107, could you please confirm whether the issue has been resolved? If so, kindly close it.

Ashlesha-MSFT avatar Apr 20 '26 18:04 Ashlesha-MSFT

@Ashlesha-MSFT I have confirmed that the issue has been resolved in my environment as well. Thank you for your support! I apologize for the delayed response.

tecchan1107 avatar Apr 21 '26 04:04 tecchan1107