Site page with Promoted State=0 still visible in news webpart

%3CLINGO-SUB%20id%3D%22lingo-sub-999738%22%20slang%3D%22en-US%22%3ESite%20page%20with%20Promoted%20State%3D0%20still%20visible%20in%20news%20webpart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-999738%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20changed%20PromotedState%20value%20for%20a%20couple%20of%20pages%20setting%20it%20to%200.%20I've%20made%20this%20change%20about%205%20days%20ago.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EToday%20some%20users%20have%20e-mailed%20me%20writing%20that%20they%20still%20can%20see%20some%20news%20(that%20now%20are%20Site%20Pages%20with%20PromotedState%3D0)%20in%20the%20News%20WebPart.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20checked%20the%20Web%20Part%20with%20my%20account%20but%20I%20can%20see%20a%20single%20news%20that%20is%20currently%20with%20PromotedStat%3D2.%20I've%20also%20tried%20with%20a%20test%20account%20and%20I%20confirm%20I%20can%20recreate%20users%20experience%20with%20other%20pages%20visible%20in%20WebPart%2C%20some%20are%20pages%20with%20PromotedState%200%20and%20there's%20also%20the%20one%20with%20PromotedState%20set%20to%202.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20it%20be%20possible%3F%20How%20can%20I%20fix%20without%20setting%20custom%20page%20properties%20and%20apply%20filters%20to%20WebPart%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-999738%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1000968%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20page%20with%20Promoted%20State%3D0%20still%20visible%20in%20news%20webpart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1000968%22%20slang%3D%22en-US%22%3EYou%20have%20to%20just%20click%20edit%20and%20republish%20on%20the%20page%20after%20changing%20that%20for%20the%20search%20indexer%20to%20pick%20it%20up.%20For%20whatever%20reason%20just%20changing%20the%20promoted%20state%20isn't%20enough%20to%20cause%20it%20to%20index%20again%20and%20update%20the%20news%20web%20parts%20since%20they%20are%20driven%20off%20search.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1001215%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20page%20with%20Promoted%20State%3D0%20still%20visible%20in%20news%20webpart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1001215%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F418638%22%20target%3D%22_blank%22%3E%40Pepozzo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EYou%20need%20to%20Demote%20the%20page%20%2Cso%20it%20will%20be%20disappeared%20from%20news%20webpart%20and%20search%20results%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20have%20the%20Powershell%20handy%20right%20now%2Cfrom%20my%20memory%20you%20can%20get%20the%20Clientsidepage%20using%3C%2FP%3E%3CP%3EGet-PnPClientSidePage%20and%20then%20demoteAsNewsArticle()%20which%20will%20actually%20updated%20the%20promoted%20state%20and%20first%20published%20date.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Emake%20sure%20you%20save%20the%20page%20using%20.Save()%20and%20.Publish()%20methods.%3C%2FP%3E%3CP%3EThat%20should%20work!!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello!

 

I've changed PromotedState value for a couple of pages setting it to 0. I've made this change about 5 days ago.

 

Today some users have e-mailed me writing that they still can see some news (that now are Site Pages with PromotedState=0) in the News WebPart.

 

I've checked the Web Part with my account but I can see a single news that is currently with PromotedStat=2. I've also tried with a test account and I confirm I can recreate users experience with other pages visible in WebPart, some are pages with PromotedState 0 and there's also the one with PromotedState set to 2.

 

How can it be possible? How can I fix without setting custom page properties and apply filters to WebPart?

 

Thanks!

 

 

 

2 Replies
You have to just click edit and republish on the page after changing that for the search indexer to pick it up. For whatever reason just changing the promoted state isn't enough to cause it to index again and update the news web parts since they are driven off search.

@Pepozzo 

 

Hi,

You need to Demote the page ,so it will be disappeared from news webpart and search results

 

I don't have the Powershell handy right now,from my memory you can get the Clientsidepage using

Get-PnPClientSidePage and then demoteAsNewsArticle() which will actually updated the promoted state and first published date.

 

make sure you save the page using .Save() and .Publish() methods.

That should work!!