CRM 2011 Javascript RRS feed

  • Question

  • Hi ,

    I need to clone Lead record. Using java script. can anybody send sample code .

    Using Soap (or ) O Data method. 

    Friday, November 29, 2013 6:45 AM

All replies

  • Hi,

    If it is mandatory to have code to clone the record then you may refer the links provided below:

    Clone Record

    Clone Record 2

    Otherwise I would suggest to have a dialog on existing record which can take a input for the new Lead record name and then trigger a workflow which can utilize the existing fields and update them into the new lead record. I hope it will be simple enough to use the OOB functionality of CRM.

    I hope this should resolve your query.

    Thanks & Regards,

    Anubhav Bajpai

    Friday, November 29, 2013 8:28 AM
  • HI ,

    the above two function just retrieve value. and sets into the field.

    where clone function , we shall no need  to set value in each field.

    Friday, November 29, 2013 8:45 AM
  • Hi,

    You could use following code line to close the window :


    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !!!
    Vikram Singh. !!!  My Blog

    Friday, November 29, 2013 8:52 AM