Answered by:
ms crm 2011 - How can I clone the associated records for the N:N relationship.

Question
-
Hi All,
I am working cloning of the Entity Form. I have clonned all the attributes of the form by using the following url.
Now, I need to clone the Associated records which has N:N relationship. How can I achieve the same through Javascript.
I tried through plugin on create but this gets fired only when I try to save the cloned Entity Form.
Can I achieve through Javascript.
Thanks,
Rajeev.
Thanks, Rajeev
Wednesday, February 13, 2013 9:43 AM
Answers
-
Hi Rajeev,
Check this sample: http://technet.microsoft.com/en-us/library/hh372956.aspx#BKMK_JScriptRESTAssociateDisassociateJS
Contact Me
Follow me on Twitter
My Facebook Page
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Marked as answer by CRM Rajeev Wednesday, February 13, 2013 12:36 PM
Wednesday, February 13, 2013 9:51 AMModerator -
Hi Andrii,
I am already having record with the associated records in it.
I am clonning the Entity Form and could clone all the attributes in it. But there is one association to the other entity(N:N) which has associated records saved.
Scenario is as follows:
I have Entity form with fields and have associated records saved in the entity form. Now when I am clonning all the fields are appearing.
I need to show the available associated records in the parent entity form.
Thanks,
Rajeev.
Thanks, Rajeev
Yes, Rajeev. I understood your scenario right and I provided you with a correct workaround. So please try reread my first answer and try to understand it.- Marked as answer by CRM Rajeev Wednesday, February 13, 2013 12:33 PM
Wednesday, February 13, 2013 11:45 AMModerator
All replies
-
Hello Rajeev,
Before record is not saved you can't Assign anything to it. Right and the only way is to use plugins.
Wednesday, February 13, 2013 9:48 AMModerator -
Hi Rajeev,
Check this sample: http://technet.microsoft.com/en-us/library/hh372956.aspx#BKMK_JScriptRESTAssociateDisassociateJS
Contact Me
Follow me on Twitter
My Facebook Page
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Marked as answer by CRM Rajeev Wednesday, February 13, 2013 12:36 PM
Wednesday, February 13, 2013 9:51 AMModerator -
Hi Andrii,
I am already having record with the associated records in it.
I am clonning the Entity Form and could clone all the attributes in it. But there is one association to the other entity(N:N) which has associated records saved.
Scenario is as follows:
I have Entity form with fields and have associated records saved in the entity form. Now when I am clonning all the fields are appearing.
I need to show the available associated records in the parent entity form.
Thanks,
Rajeev.
Thanks, Rajeev
Wednesday, February 13, 2013 11:42 AM -
Hi Andrii,
I am already having record with the associated records in it.
I am clonning the Entity Form and could clone all the attributes in it. But there is one association to the other entity(N:N) which has associated records saved.
Scenario is as follows:
I have Entity form with fields and have associated records saved in the entity form. Now when I am clonning all the fields are appearing.
I need to show the available associated records in the parent entity form.
Thanks,
Rajeev.
Thanks, Rajeev
Yes, Rajeev. I understood your scenario right and I provided you with a correct workaround. So please try reread my first answer and try to understand it.- Marked as answer by CRM Rajeev Wednesday, February 13, 2013 12:33 PM
Wednesday, February 13, 2013 11:45 AMModerator -
Hi Andrii,
Thanks a lot, now I understood.
Thanks, Rajeev
Wednesday, February 13, 2013 12:34 PM