2. Whenever a Lead record is updated, set the Lead Status to Working-Contacted.

Solution:

trigger LeadTrigger on Lead (before update) {
      if(Trigger.isBefore && Trigger.isUpdate) {
          for (Lead leadRec : Trigger.NEW) {
               leadRec.Status = ‘Working-Contacted’ ;
               }
      }

}

 

Want to Apply As Content Writer?

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart

Let's get you started!

Interested in writing Salesforce Content?

Fill in this form and we will get in touch with you :)