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
  • While story types can set the LastUpdateDate, most do not. As an example, blog posts do (because they support scheduled publishing), but forum threads don't.

    What type of content are you migrating that you want to adjust?

  • What type of content are you migrating that you want to adjust?

    Forum Thread/Replies

  • Digging deeper, it appears that the post Add date seems correct but the Replies are not referencing the date set from REST but the time it was imported:

    • Actors [IList-of-ActivityStoryActor]
      • [0] [ActivityStoryActor]
        • ActorId: d17466a4-a9f5-4d1e-8754-22ea3dce9270 [Guid]
        • Date: 6/30/2011 3:21:40 PM [DateTime]
        • User [User]
        • UserId: 39585 [Int32]
        • Verb: "Add" [String]
      • [1] [ActivityStoryActor]
        • ActorId: c0fca003-db74-42dc-b632-4e347d873c16 [Guid]
        • Date: 9/22/2022 3:18:17 PM [DateTime] Actual Reply: 6/30/2011 3:54 PM
        • User [User]
        • UserId: 46753 [Int32]
        • Verb: "Reply" [String]
      • [2] [ActivityStoryActor]
        • ActorId: fa01082d-1f33-420d-b191-48a4acf5b995 [Guid]
        • Date: 9/22/2022 3:18:17 PM [DateTime] Actual Reply: 6/30/2011 5:01 PM
        • User [User]
        • UserId: 46886 [Int32]
        • Verb: "Reply" [String]
      • [3] [ActivityStoryActor]
        • ActorId: c750abdf-a875-4807-975f-4c71b1926a5b [Guid]
        • Date: 9/22/2022 3:18:17 PM [DateTime] Actual Reply: 6/30/2011 7:13 PM
        • User [User]
        • UserId: 39585 [Int32]
        • Verb: "Reply" [String]
      • Count: 4 [Int32]
    • Content [Content]
    • ContentId: 48311d09-63d8-4101-b8d8-017e2871fad0 [Nullable-of-Guid]
    • ContentTypeId: 46448885-d0e6-4133-bbfb-f0cd7b0fd6f7 [Nullable-of-Guid]
    • CreatedDate: 6/30/2011 3:21:40 PM [DateTime]
    • ExtendedAttributes [IList-of-IExtendedAttribute]
    • LastUpdate: 9/22/2022 3:18:17 PM [DateTime]

    I'm not sure if that information is helpful, but wanted to share in case it is easier to change/update.

Reply
  • Digging deeper, it appears that the post Add date seems correct but the Replies are not referencing the date set from REST but the time it was imported:

    • Actors [IList-of-ActivityStoryActor]
      • [0] [ActivityStoryActor]
        • ActorId: d17466a4-a9f5-4d1e-8754-22ea3dce9270 [Guid]
        • Date: 6/30/2011 3:21:40 PM [DateTime]
        • User [User]
        • UserId: 39585 [Int32]
        • Verb: "Add" [String]
      • [1] [ActivityStoryActor]
        • ActorId: c0fca003-db74-42dc-b632-4e347d873c16 [Guid]
        • Date: 9/22/2022 3:18:17 PM [DateTime] Actual Reply: 6/30/2011 3:54 PM
        • User [User]
        • UserId: 46753 [Int32]
        • Verb: "Reply" [String]
      • [2] [ActivityStoryActor]
        • ActorId: fa01082d-1f33-420d-b191-48a4acf5b995 [Guid]
        • Date: 9/22/2022 3:18:17 PM [DateTime] Actual Reply: 6/30/2011 5:01 PM
        • User [User]
        • UserId: 46886 [Int32]
        • Verb: "Reply" [String]
      • [3] [ActivityStoryActor]
        • ActorId: c750abdf-a875-4807-975f-4c71b1926a5b [Guid]
        • Date: 9/22/2022 3:18:17 PM [DateTime] Actual Reply: 6/30/2011 7:13 PM
        • User [User]
        • UserId: 39585 [Int32]
        • Verb: "Reply" [String]
      • Count: 4 [Int32]
    • Content [Content]
    • ContentId: 48311d09-63d8-4101-b8d8-017e2871fad0 [Nullable-of-Guid]
    • ContentTypeId: 46448885-d0e6-4133-bbfb-f0cd7b0fd6f7 [Nullable-of-Guid]
    • CreatedDate: 6/30/2011 3:21:40 PM [DateTime]
    • ExtendedAttributes [IList-of-IExtendedAttribute]
    • LastUpdate: 9/22/2022 3:18:17 PM [DateTime]

    I'm not sure if that information is helpful, but wanted to share in case it is easier to change/update.

Children
No Data