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):

    TE-17806: Update all activity stories to set LastUpdatedDate explicitly on create

    Completed for 12.1.4

    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