web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to create clone of entity and all components of that entity?

(0) ShareShare
ReportReport
Posted on by 256

Hi All,

I want to create clone of any entity and all related component of that particular entity.

Please suggest any solution. 

Thanks! 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     not sure there is an easy way.. you might create a new solution, add that entity to the solution, export the solution, and, then, update the solution files manually.

     Basically, you'll need to replace entity schema name with a new name in all those files. And, then, you'll need to replace the GUID-s for all forms, possibly sections, etc..  again, in all solution files (find a Guid in the files, change a few characters, then use "find and replace" to replace old value with the new one in ALL solution files)

     Then you can re-package the solution and import it to Dynamics

  • AnkitSinghal Profile Picture
    256 on at

    Actually I have many fields and web resources on the entity and i need to create 19 clones. So, this way is not easy.

    Can u have any other way.

    Thanks!

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

    Hi Ankit,

    So if I understand, you want to clone the entity metadata, not a specific record?

    If that's what you're looking for, the XrmToolbox will help. Download it at www.xrmtoolbox.com and you'll want to run the plugin called 'Clone Field Definitions Plugin'. The description of the plugin is: "A XrmToolBox Plugin that helps copying field definitions from an entity to another". I think in your case you'd have to create the 19 entities, but you can use this plugin to create all the fields from your main entity to the others.

    I have to say though, the requirement to have 20 nearly identical entities seems like it may be better approached in different ways (maybe have a picklist for the 20 different types for which category it belongs to).

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

  • Anurag Sarkar Profile Picture
    5 on at

    Hello,

    With the XRM Toolbox can I clone all the relationships too??

    Thanks,

    Anurag

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans