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)

Clone a record and its related entities

(0) ShareShare
ReportReport
Posted on by 250

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

  • Suggested answer
    Aiden Kaskela Profile Picture
    19,696 on at

    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

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans