For acheiving this functionality, I have followed the following steps.
- Added a field called "createdAsCopy" which is a bit field
- Added a field called "referrerEntityID" which holds the EntityID which is to be cloned.
- Created a manually run WorkFlow called Copy Entity which copies all attributes to the new entity and flags the attribute "createdAsCopy" as "Yes" and fills "referrerEntityID" with EntityID of Entity which is to be Cloned
- If there is any plugin-code (post-Create) should read the createdAsCopy and do the necessary creation of related entities.
http://mscrm4ever.blogspot.com/2008/06/cloning-entity-using-javascript.html
No comments:
Post a Comment