Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

RetrieveRecordChangeHistoryResponse - extract all change history for a specific Entity

$
0
0

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


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images