if Lead status = closed and reason = "somthing". after saving the record it should take me to create a new opportunity.

Is it possible with trigger or process builder ?

  • 1
    Like a lead convert? – EricSSH Jan 20 '16 at 21:59
  • asd EricSSH says - standard and intended SFDC behavior is for the user to click Convert Lead that in turn creates (attaches to) Account, Contact, and Opportunity with Lead fields mapped to fields on Account-Contact-Opportunity. No need to reinvent the wheel – cropredy Jan 21 '16 at 0:55

Yes this is possible. Here is the code :

trigger toOppo on Lead (after update) {

list<lead> l = trigger.new;

for(lead l1:l){

    if((l1.status=='Closed - Converted') && (l1.reason!=' ')){

    opportunity o = new opportunity();
insert o;




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.