I am not getting correct ModifiedOn date from getcontentobjectrevisionhistorydetails

Hi All,

I have installed the Content Tools plugin and am using the getcontentobjectrevisionhistorydetails function to retrieve version details. I am passing a UUID and filtering the results by the modifiedOn date. However, I am encountering an issue where the modified date field is not correctly reflecting the changes made.
For example, when I select the modified date as 2/6/2025, the result from getcontentobjectrevisionhistorydetails is null because it is returning same as created date value, but it should give latest version date value which highlighted in version details below. This can be seen in the information below: 

  • creator "Balavamsikrishna_vinnapala@contractor.amat.com" (Text)

             createdon "1/29/25 AM GMT" (Text)

             modifiedon "1/29/25 AM GMT" (Text)

 
Version details of one object Created
2/6/2025 10:08 AM by sala vamsi Krishna Vi...
1/29/2025 lo:ss AM by sala vamsi Krishna
1129/2025 9:57 AM by sala vamsi Krishna Vi...
1129/2025 9:13 AM by sala vamsi Krishna Vi...
1129/2025 9:08 AM by sala vamsi Krishna Vi...
1129/2025 8:53 AM by sala vamsi Krishna Vi...
6 items

can anyone know about this that why modifiedOn date is not taking latest version date.

  Discussion posts and replies are publicly visible

Parents
  • I'm not 100% sure but it looks like there is some manipulation being done outside the actual plugin function as the getcontentobjectrevisionhistorydetails function has "Date Created" and "Date Updated" and not a "modifiedOn" field. Given that you're getting the most recent version before the current one my guess is that whatever code is surrounding the function isn't using the Version Id correct.

    So, a bit of a stab in the dark but maybe your code isn't considering the current version as having a Version Id of -1? See below for the raw format from the getcontentobjectrevisionhistorydetails function.

    [ Version Id, Date Created, Date Updated, Size (Bytes), Author],
    [ -1, 2025-02-13 05:10:13.0, 2025-02-13 05:10:13.0, 3176, authorUsername],
    [ 7, 2025-02-13 00:20:35.0, 2025-02-13 00:20:35.0, 2854, authorUsername],
    [ 6, 2025-02-13 00:20:19.0, 2025-02-13 00:20:19.0, 3036, authorUsername],
    [ 5, 2025-02-13 00:14:49.0, 2025-02-13 00:14:49.0, 2306, authorUsername],
    [ 4, 2025-02-12 05:51:49.0, 2025-02-12 05:51:49.0, 2501, authorUsername],
    [ 3, 2025-02-12 05:40:21.0, 2025-02-12 05:40:21.0, 2319, authorUsername],
    [ 2, 2025-02-12 05:25:05.0, 2025-02-12 05:25:05.0, 1904, authorUsername],
    [ 1, 2025-02-12 05:07:48.0, 2025-02-12 05:07:48.0, 0, authorUsername], 

    If this is totally off the mark can you provide the code you are using?

  • Hi Andrew, Thanks for replying. sry for that i missed one point here, its not getcontentobjectrevisionhistorydetails, its getappobjectuuids where we can get modifiedOn field, and as you mentioned above i am considering version Id -1 as well, you can see for i got one version for one object 
    "{"versionId":" -1","createdDate":" 2025-02-06 10:08:37.0","updatedDate":" 2025-02-06 10:08:37.0","size":" 2783","author":" Balavamsikrishna_Vinnapala@contractor.amat.com"}

    Could you please check with getappobjectuuids on my above query 

Reply
  • Hi Andrew, Thanks for replying. sry for that i missed one point here, its not getcontentobjectrevisionhistorydetails, its getappobjectuuids where we can get modifiedOn field, and as you mentioned above i am considering version Id -1 as well, you can see for i got one version for one object 
    "{"versionId":" -1","createdDate":" 2025-02-06 10:08:37.0","updatedDate":" 2025-02-06 10:08:37.0","size":" 2783","author":" Balavamsikrishna_Vinnapala@contractor.amat.com"}

    Could you please check with getappobjectuuids on my above query 

Children