I am using RetrieveRecordChangeHistoryResponse to extract the change history in the Audit table for a specific Entity.
The code:
RetrieveRecordChangeHistoryRequest changeRequest = new RetrieveRecordChangeHistoryRequest();
changeRequest.Target = new EntityReference("doc_objective", new Guid("56E5BF0F-69AB-4FD0-A593-E419AF7DF41B"));
RetrieveRecordChangeHistoryResponse changeResponse =
(RetrieveRecordChangeHistoryResponse)_service.Execute(changeRequest);
AuditDetailCollection details = changeResponse.AuditDetailCollection;
foreach (AttributeAuditDetail detail in details.AuditDetails)
{
do something....
}
In the code, I have specified the Entity Name and its Guid.
I am just not sure that it is possible to extract all change history records for "doc_objective".
I have tried that code but I am not getting anything returned.
The sample codes I have seen applies to a specific record only.
Is it possible using the code above to extract ALL change history records for table for a specific table Entity?
Thanks
a2z






