Skip to main content

KI-127

Viewing a Document Version record updates the Last Modified By value

Created date

07/29/2024

Updated date

11/04/2024

Status

Done

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

Medical Information Cloud Content Management

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

Previous workaround prior to fix: Always ensure that you are using the Medical Information Cloud 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

V15

Resolution notes

Microsoft 365 domains are now packaged as trusted sites such as that all of the trusted URLs listed in the workaround above are provided out of the box.