History entry does not display in audit on canceling workobject
History entry does not display in the audit trail on canceling a work object. This occurs when using the History-Add method to create a history entry.
Steps to ReproduceCancel a case and review the audit trail.
An issue in the custom application code or rules where a commit was not performed. The History-Add method performs a deferred save of the history record, but a commit is required to write it to the database.
ResolutionPerform the following local-change:
Include a Commit to write the history record to the database.