Skip to main content

{!REQUIRESCRIPT("/soap/ajax/22.0/connection.js")} 

var newRecords = []; 

var c = new sforce.SObject("Lead"); 

c.id ="{!Lead.Id}"; 

c.Conversion_with_Opportunity__c = true; 

c.Submit_for_Conversion__c = true; 

newRecords.push(c); 

result = sforce.connection.update(newRecords); 

window.location.reload();

What do I need to do to convert and make it work in Lightning?
1 个回答
0/9000