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)

Dyn CRM: Entity Change Tracking across a multi-level entity structure (parent/child/grandchild)

(0) ShareShare
ReportReport
Posted on by

How does CRM handle a multi-entity structure with various parent-child relationships?  In other words, can't there be some timing issue with having separate tokens for each entity?  If my process requests all updates to a PARENT entity, and then while I am processing them, someone adds a new PARENT with CHILDREN, and then when the step to get all the CHILDREN starts, it will get the new CHILD records, but it didn't get the PARENT.  I think I will still have to do it the old fashioned way and keep my own "token" so I can use the same timestamp across all entities in the structure.  Any thoughts?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    You simply need to ensure that you retrieve the entity changes in the reverse order of the hierarchy - so retrieve children first then the parent - then re-assemble the records to insert into your target database. There would never be a situation where the child record would reference a parent record that did not already exist and so you would be able to get the record in the change tracking set.

    Hope this helps.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans