I have a requirement to clone a record and all its related entities. I know there is a method EntityExtensions.Clone(entity, true) which does this in CRM 2015. On Dynamics 365 online, this method still works and clones the record, but NOT the related records. Is this method still active or working in the latest version?
*This post is locked for comments
Hi,
See the link below.
Hope this helps.
Hi,
The EntityExtensions class was deprecated and last used in the 2015 SDK, in fact the Microsoft.Xrm.Client assembly has been removed from the 8.2 SDK (probably 8.0 but I have 8.2 in front of me). I can't find anything remotely similar in the current SDK, either online or by running the code through IL Spy. I would expect the 7.0 version to continue working and I'm a little surprised it isn't, but since it isn't supported on that version I'm not really shocked. Sorry. Documentation: msdn.microsoft.com/.../microsoft.xrm.client.entityextensions.aspx
I'd appreciate if you'd mark this as Answering your question.
Thanks,
Aiden
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156