SharePoint pages promoted as news from code not appearing in News webpart
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint CSOM
Developer environment
Windows
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
- SPFx version 1.14
- Node version 14.20.0
- etc
Describe the bug / error
We have a SPFx webpart that basically is creating News pages that were appearing into the News OOTB webpart. Not sure when, but the pages created are not appearing into OOTB News webpart anymore. I have checked that the news created have PromotedState=2 and they are publish which are the requirements to be display from that webpart.
Steps to reproduce
- Create a page with code
- Promote it with code updating PromotedState to 2
- Publish the page
- Check if the page is appearing from News webpart
Expected behavior
If the page has promotedstate to 2 and it is publish, it must appear from News OOTB webpart.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Thank you for your submission. As explained in our wiki (Issue List: What doesn't belong in the issue list), this issue list is for SharePoint developer/development issues. All capability question/discussion questions, or topics related to SharePoint administration & end-user topics should be reported through the support user interface available in the tenant admin settings. You can also have a discussion and ask questions at the SharePoint TechCommunity forum. You can learn more about this in our wiki: type:invalid-not-dev-issue