Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Clone a record and its related entities

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
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Clone a record and its related entities

    Hi,

    See the link below.

    meghshyam.wordpress.com/.../clone-associated-recordschild-records-along-with-parent-record-in-crm-2011

    Hope this helps.

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,692 on at
    RE: Clone a record and its related entities

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans