Is it Possible to Programmatically Override Activity Story LastUpdate Date on Creation?

Background: Migrating approximately 64,000 posts using REST API to create threads/replies.

Issue: Date for posts entered appropriately. Activity Story Stream uses the REST Migration date instead of the post date/time, pushing other, non-migrated content down 64K spaces.

Activity Story has correct "Created" date but LastUpdate shows the migration time (which I suppose is technically correct) not the merged date.

Is there a method to override this?

Parents Reply
  • Long term, this will require a bug fix to ensure that LastUpdatedDate is always set in activity stories (it defaults to "now" which is affecting the creation of stories for forum content created in the past):

    [embed:1a3cced3-af51-49ce-89e2-91f65855cd2d:ad95fa4b-7b9b-4166-a7ee-5c99788082f9:id=TE-17806]

    A shorter-term fix may be to manually update the story LastUpdatedDates in the database to match their CreatedDate values (assuming there is a way to detect which stories are related to migrated content -- perhaps by a date range for CreateDate, for example).

Children