Skip to main content

KI-127

Viewing a Document Version record updates the Last Modified By value

Created date

07/29/2024

Updated date

07/29/2024

Status

Backlog

Related work item

PLTFM-2896

Description

If a user views a Document Version (mvn__CM_Document_Version__c) record, the standard Last Modified By (LastModifiedById) field will update with the user's information, even if the user didn't actually edit the document version. This happens to any document version of any document.

In general, the Last Modified By field is updated frequently by many hidden and automatic processes, such as batch or scheduled jobs, workflow actions, related documents being updated, new document versions being added, etc. In this case, when a user views a document, the URL to view the most recently rendered preview is stamped on the Thumbnail URL (mvn__CM_Thumbnail_URL__c) field on the Document Version record to render the thumbnail in list views. The stamping of the URL is what is updating the Document Version record and therefore what is causing the user update on the Last Modified By field.

Affects version(s)

All versions

Impacted capabilities

N/A

Steps to reproduce

  1. Sign into an org as an admin user.

    1. Ensure that your Document (mvn__CM_Document__c) page layout is displaying the Last Modified By (LastModifiedById) field from the Document Version (mvn__CM_Document_Version__c) object. Modify any Field (mvn__LY_Field__mdt) metadata records as necessary.

    2. Create a new Document record with a file.

  2. Log out or open an incognito window.

  3. Sign into the same org as a different user.

    • Open the newly created Document record.

Notice how the Last Modified By field changes to the second user.

Workaround

Always ensure that you are using the Komodo Publications Planning custom Metadata Last Modified By (mvn__CM_Metadata_Last_Modified_By__c) field instead of the Salesforce standard Last Modified By (LastModifiedById) field.

Fix version

Resolution notes