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 :
Customer experience | Sales, Customer Insights,...
Unanswered

RetrieveRecordChange History Issue(The property provided was of type Microsoft.Xrm.Sdk.EntityReference, when the expected was of type Microsoft.Xrm.Sdk.Entity)

(0) ShareShare
ReportReport
Posted on by 195

Hi,

RetrieveRecordChangeHistory webapi call is throwing below exception:

pastedimage1599216117010v8.png


https://xxxxxxxx.crm.dynamics.com/api/data/v9.1/RetrieveRecordChangeHistory(Target=@p1)?@p1=%7B%27@odata.type%27:%27Microsoft.Dynamics.CRM.knowledgearticle%27,%27knowledgearticleid%27:%20%278876c3e7-53fb-44a6-b2d6-2a00d5c43d24%27%7D

When I change Guid  in above url for few records it is working fine but for few getting the  

The property provided was of type Microsoft.Xrm.Sdk.EntityReference, when the expected was of type Microsoft.Xrm.Sdk.Entity  error.

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi Susritha,

    It seems that you had performed association or disassociation operation between the target knowledgearticle entity and another entity.(1:N or N:N)

    e.g:

    I have a contact, and I removed him from a specific marketing list, then system will create a new event record called "Remove Members" in related audit history records.

    3122.JPG

    Before the record is created, the web api was able to execute successfully, however, after creation of record, I encountered same error as yours. 

    Please remove any association or disassociation audit records of the target record, or take a record which only has CRUD operations to test the api again.

    Regards,

    Clofly

  • Susritha Profile Picture
    195 on at

    I also want to see the records audit history even  they have associated 1:N or N:N record.Is there any way to see it

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 157

#2
ManoVerse Profile Picture

ManoVerse 153 Super User 2026 Season 1

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans