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

  • 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 

  • Ah! Ok. The getappobjectuuids function is from a different plugin than the Appian developed "Content Tools" plugin. The top comment in the "Get Application's Content Objects" plugin ( Get Application's Content Objects ) is below and it seems like this is just an error with the plugin. Given it's nearly 5 years old, and plugins aren't supported by Appian, it seems like it just isn't going to do what you need.

    Personally I try to limit my use of non-Appian developed plugins. It's unavoidable sometimes but if I can achieve what I need to another way, even if the plugin is more convenient, I'll choose the supported path. Even though Appian doesn't support any plugins I feel much more comfortable using Appian developed ones.

    https://community.appian.com/b/appmarket?tags=Appian%20Corporation

  • 0
    Certified Lead Developer
    in reply to balavamsikrishnav3101

    Like Andrew mentioned, I would recommend you use the Content Tools plugin to get the information you need. If you found a bug with the plugin you are currently using, you should try to contact the plugin author.