How to get audit registry information using FetchXML

Using this query, I can get audit records in Microsoft Dynamics CRM online

<fetch version="1.0" >
  <entity name="audit" >
    <all-attributes/>
  </entity>
</fetch>

But this lacks information about what happened in the operation, more specifically the column old valuealso changed new value. This data is displayed when I use the audit tool in the settings of the normal interface, so the data is present. Does anyone know how to get it? Is there any other object that is missing?

+1
source share
1 answer

Audit records only track old values. Therefore, when an attribute is changed, only its old value is stored in the audit table.

, ( ), . ChangeData Audit.

. RetrieveRecordChangeHistoryRequest. RetrieveRecordChangeHistoryResponse AuditDetail. , AttributeAuditDetail, OldValue NewValue, .

+2

Source: https://habr.com/ru/post/1682933/


All Articles