cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoshMohr
Advocate I
Advocate I

Changing The first published date on news page

Hey Guys,

 

I'm currently facing an issue with changing the first published date of news pages. My Flow creates a new file with the same content like a selected news page and its neccessary for our process that after the creation we set a new first published date because this flow often triggers some weeks after the creation of the originial file. Then the newly created News page has the same old first published date and is shown somewhere lower. 

 

Until yesterday we achieved this in the flow with setting the first published date through the REST Action. It looks like this:

Published date.PNG

But at some point this week it stopped working. The Flow runs fine but the FirstPublishedDate is not changed. It probably had to do with a change on MS side? Does anybody has an solution on how to change the First Published Date ideally throgh MS Flow? 

 

Thanks for any help!

5 REPLIES 5
v-yamao-msft
Community Support
Community Support

Hi @JoshMohr ,

 

Could you share a screenshot of your flow configuration?

It seems that the value for FistPublishedDate comes from a variable. Please make sure the variable does return a correct value.

I will help reproduce this issue on my side then.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hey @v-yamao-msft ,

 

here is a screenshot of the hole flow configuration. I opened the relevant parts for you:

FlowConfig.png

 

The variable "Aktuelles Datum" is just set to utcNow(). Also I'm setting a custom Date Field named "HeadlineEndDate" and I'm setting it as "Aktuelles Datum" + 6 Days and for this field it's working fine. The other Cases in the switch case are built the same and also won't work. Besides this flow I have also other Flows which set the FirstPublishedDate the same and they also stopped working. Also maybe an important note: The Flow doesn't throw an error it is just not setting value.

 

Thanks for your help! If I can provide you further information just ask!

 

Best regards,

 

Josh

@v-yamao-msft any updates?

Sorry to resurrect an old thread, but did you have any success with this?

Hello @hallsop ,

 

no worries. Unfortunately I found no solution and now we don't need this ability anymore. So I did no further investigations in the meantime. But I remember an idea on uservoice where you should look into the comment section. Seems that this could be possible by now/in the future. 

 

Here the link:

https://sharepoint.uservoice.com/forums/329214-sites-and-collaboration/suggestions/31654879-editable...

 

News scheduling:

https://support.microsoft.com/en-us/office/schedule-a-sharepoint-page-or-news-post-to-go-live-at-a-s...

 

Hope this helps!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,305)