Skip to main content
Saurabh Kukreja ha fatto una domanda in #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 risposta
  1. 6 apr 2015, 07: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