November Happy Hour will be moved to Thursday December 5th.

Setting page Changed date programmatically

Vote:
 

Hello

I am writing a scheduled job which retrieves data from an existing database and imports it as pages into EPiServer (updating or creating published pages). I have found I can set the StartPublish date, the Created date, but I cannot set the Changed date. Is there any way around this? As I am trying to set the Changed date to be the date it was last updated in the other database.

Cheers
Sharon

#88654
Jul 23, 2014 4:27
Vote:
 

Hi Sharon!

Did you get any solution to this, I'm about to look into the same issue.

//Mathias

#115088
Jan 09, 2015 8:37
Vote:
 

Like Linus describes in an answer to me here:
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=113298&epslanguage=en

There is a configuration settings: UIDefaultValueForSetChangedOnPublish, if you set it to true, I think that date will be set when you publish the page

#115091
Jan 09, 2015 9:31
Vote:
 

Nice, thanks Henrik! I'll have a look.

//Mathias

#115106
Jan 09, 2015 11:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.