locked
How to clone the the order entity RRS feed

  • Question

  • Dear Support,

    Could anybody please tell how to clone the Order entity so that I can use it for other purpose?

    Please help me

    Thanks

    Tuesday, February 24, 2015 2:22 PM

All replies

  • There are basically three methods of clonning:-

    1. Server Side

    You can use workflow, plugin or workflow assembly. Workflows don't require coding where as plugin and workflow assembly will require coding:-

    http://nishantrana.me/2010/04/15/clone-records-in-crm/


    http://www.tribridge.com/knowledge-center/tribridge/posts/p2/2011/07/28/cloning-a-record-in-dynamics-crm-2011

    2. Client Side

    You can use javascript to create clone using oData or REST

    3. Create a self relationship of order and map all fields to child order. Publish customization. When you will create a child record it will clone the parent record however child records will not be cloned.


    Regards Faisal

    Tuesday, February 24, 2015 2:33 PM
  • Are you trying a copy a record, or create a new custom entity that behaves like the order entity ?

    If you are trying to copy a record, then the previous post gives some options. If you want a custom entity that behaves like the order entity, then you can't get the full functionality, as some functionality is hard-coded into the order entity


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Tuesday, February 24, 2015 3:00 PM
    Moderator
  • Dear Support,

    Thanks David,

    Yes Im trying to create a new custom entity that behaves like the order entity. Functionality is fine. I can adjust. Can you please tell how can I create it?

    Thanks

    Wednesday, February 25, 2015 5:22 AM
  • You can't copy any of the order entity functionality. You will have to create a new custom entity, and add fields and functionality yourself

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Wednesday, February 25, 2015 9:50 AM
    Moderator