I wanted to retrieve the 'statuscode' audit history for the incident.
I have got the AuditDetailCollection, how do I retrieve the value of the statuscode?
Thanks.
code snippet:
var attributeChangeHistoryRequest = new RetrieveAttributeChangeHistoryRequest()
{
Target = new EntityReference("incident", _case.Id),
AttributeLogicalName = "statuscode"
};
var attributeChangeHistoryReponse = (RetrieveAttributeChangeHistoryResponse)_service.Execute(attributeChangeHistoryRequest);
var auditDetailCollection = attributeChangeHistoryReponse.AuditDetailCollection;
*This post is locked for comments