Lightning: Notes related list displays ContentNote insert date/time instead of LastModifiedDate set on insert with audit fields enabled
Last updated 2020-01-04 ·Reference W-6321918 ·Reported By 2 users
The Notes related list in Lightning displays the Last Modified date/time value of when the insert was performed instead of the LastModifiedDate value that was set upon inserting ContentNote records with audit fields enabled.
The ContentNote record's Last Modified value in the Notes related list in Lightning displays the date/time value of ContentVersion.LastModifiedDate when it is expected to display ContentVersion.ContentModifiedDate.
In almost all circumstances these two fields' values are in sync and the same. However, an exception to this is when ContentNote records are inserted with audit fields enabled.
When audit fields are enabled the LastModifiedDate audit field values in the insert file are input into the ContentVersion.ContentModifiedDate field whereas the ContentVersion.LastModifiedDate field automatically inherits the date/time value of when the insert was performed.
Additionally, in Lightning the user displayed in the related list is pulled from ContentVersion.LastModifiedById, while in Classic the Created By user is pulled from ContentVersion.ContentModifiedById. This behavior is also being reviewed within the scope of this fix.
1) Insert a ContentNote record and set its audit field values (LastModifiedDate) and insert a ContentDocumentLink record to associate to note to an Account record for example.
2) Switch to Lightning Experience, if necessary, and navigate to the record to which the Note is related.
Actual Results: The Last Modified date/time in the RL is displaying the date/time for when the ContentNote was inserted (ContentVersion.LastModifiedDate) instead of the value set for LastModifiedDate when inserting the ContentNote (ContentVersion.ContentModifiedDate).
Expected Results: The Last Modified date/time display the Note's Last Modified date/time set on insert (ContentModifiedDate) and not the Content Version record's Last Modified date/time (LastModifiedDate).
None at this time.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.