web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

RetrieveAttributeChangeHistoryRequest Does not Returns Incomplete Data

(0) ShareShare
ReportReport
Posted on by

I have a task to track status changes on cases.  I turned on Auditing for the Case Entity.

I took a case and changed statuses like this:

New -> Save

Waiting on Customer -> Save

CS 1 -> Save

Waiting on Customer-> Save

CS 1 -> Save

Waiting on Customer -> Save

CS 2 -> Save

Then I resolved the case with "Issue Resolved" Status.

I would expect the RetrieveAttributeChangeHistoryRequest to return this:

Old Value New Value
In Progress New
New Waiting on Customer
Waiting on Customer CS 1
CS 1 Waiting on Customer
Waiting on Customer CS 1
CS 1 Waiting on Customer
Waiting on Customer CS 2
CS 2 Issue Resolved

But it does not - it only returns these records:

Old Value New Value
In Progress New
New Waiting on Customer
Waiting on Customer CS 1

That's it.  It is missing several changes I made to the status.   I also tried pulling the data with the RetrieveRecordChangeHistoryRequest, and it pulls the exact same results.

Furthermore, I looked at the Audit table and I can see my changes are in the Audit table, if you look at the change data from the bottom up, the correct statuscode id's are displayed in the order I changed them, Except the Issue Resolved Status is not there which is another problem.

changedata.PNG

Please tell me I am doing something wrong and that the C# methods for the Audit records aren't completely useless????

Thanks,

Coty

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Sorry, I forgot to add, this is how I am pulling the attribute data:

    
    
    var myAattributeChangeHistoryRequest = new RetrieveAttributeChangeHistoryRequest
    {
    Target = new EntityReference(
    "incident", myCaseId),
    AttributeLogicalName = "statuscode"
    };
    multipleRequest.Requests.Add(myAattributeChangeHistoryRequest);

    Or the Record Data:

                    var myAattributeChangeHistoryRequest = new RetrieveRecordChangeHistoryRequest
                    {
                        Target = new EntityReference(
                        "incident", myCaseId)
                    };
                    multipleRequest.Requests.Add(myAattributeChangeHistoryRequest);




Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans