Skip to main content

KI-80

Document usage is logged twice in MIC Content Management audit logs

Key/Summary

KI-80 Document usage is logged twice in MIC Content Management audit logs

Status

Done

Created

04/04/2022

Updated

08/31/2022

Description

When document usage reporting is enabled and a document from MIC Content Management is used in a Request, the document usage should be logged in the Document record’s audit log. However, two document usages instead of one are logged. This is because field updates in the Request workflows edit the Request record twice.

Impacted Capabilities

Inquiry Management

Content Management

Affected Apps

Medical Information Cloud - Lightning

Affects Versions

MIC V10, MIC V11

Fix Version

V12

Steps to Reproduce

To reproduce this issue, MIC Content Management must be the source of the content and the [Create Document Audit Log] field in the System Event Document Usage record must be enabled.

  1. Create a new Request record (via an Interaction record).

  2. Search for and attach a document from MIC Content Management in the Request.

  3. Create a new Fulfillment record.

  4. Complete the Fulfillment, and set the [Status] to “Closed.”

  5. Complete the Request, and set the [Status] to “Closed.”

The Audit Log History component in the Document record should show a single log indicating that the document is used in the Fulfillment. However, two duplicate document usage logs are displayed.

Workaround

Replace the Request workflows with flows that use Before-save triggers. This includes the MED_Request - Set Date/Time Closed and MED_Request - Lock Request RecType workflows as well as any custom workflows that use field update actions on Request records upon close.