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