Skip to main content
Saurabh Kukreja が「#Mobile」で質問
Hi Experts

I am creating a local Hybrid app(local HTML pages) using mobile SDK and forceTk  and one of the module has convertLead option but I am not getting any method or API which converts the Lead to opportunity account and Contact.

Can anyone help to guide what can be done to achieve this.
1 件の回答
  1. 2015年4月6日 7:32
    Create your own apex REST webservice class which will convert the lead record into Account, Contact and Opportunity. Here is the sample code for writing the logic for converting lead process - http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dml_convertLead.htm

    Now you have created a custom REST API class (http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_rest_code_sample_basic.htm

    ) which will convert your lead, now call your REST API class in your code to convert lead.

    "/services/apexrest/yourRestClassName/leadId"

    Thanks,

    http://karanrajs.com

     
0/9000