With 1.7 million freelancers, we'll match you with the perfect talent.
The client has made the following changes to the job.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
- Writing a trigger that will automatically create a new lead in SF off of a contact profile when a contact's "clicked" field is populated, and making sure that the leads "lead source" field is populated with the name of the email campaign.
Salesforce gave me the code:
Here is the sample code to create a new lead in SF off when a contact's "clicked" field .
Trigger on Contact (After Update)
List<Lead> leads = New List<Lead>();
For(Contact c : Trigger.New)
If(c.Clicked == True)
Lead L = New Lead();
L.Name = 'TestLead';
L.Status = 'New' ;
//Give all Required Fields for the Lead
Sign in or Register to see more