List Formatting: `PromotedState` can no longer be updated via `setValue`
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.
However, when testing this now, a update message is displayed, but the value is not actually updated.
Is this a bug, or was there a change in behavior or specification?
Steps to reproduce
- Display the Promoted State column in Site Pages.
- Apply the promotedstate-demote-news JSON to the column formatting of the displayed
Promoted Statecolumn.
Expected behavior
The PromotedState column can be updated using setValue, as it was previously.
Noticed this as well! - the batch call that's being made just has an empty array for fieldvalues
@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.
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.
@Ashlesha-MSFT Any updates from product team?
@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.
Ok bug confirmation is good at least and not change of behavior...
@Ashlesha-MSFT any update?
@aaclage, I’ve tagged the engineering team again. I’ll get back to you as soon as I hear from them.
@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, 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!
Tested a couple of tenants, still having the same issue.
@watana2, The fix has been merged, but it will take some time to roll out to production in SharePoint Online.
It’s working now. 👍
@tecchan1107, could you please confirm whether the issue has been resolved? If so, kindly close it.
@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.