You need to sign in to do that
Don't have an account?

Apex trigger create task on lead needs to be "when edited to subsequently meet criteria"
Apex trigger creat task on lead needs to be when edited to subsequently meet criteria. right now i have it as follows:
trigger createtask on lead (after insert) {
The "after insert" needs to be changed but I'm not sure what it should be changed to.
Any help is greatly appreciated
trigger createtask on lead (after insert) {
The "after insert" needs to be changed but I'm not sure what it should be changed to.
Any help is greatly appreciated
trigger createtask on lead (after insert, after update) {
in this way the trigger will fire the first time the record is saved (after insert) and any other time that it is updated (after update).
You could then segment your code using if statements example Regards
Andrew
All Answers
trigger createtask on lead (after insert, after update) {
in this way the trigger will fire the first time the record is saved (after insert) and any other time that it is updated (after update).
You could then segment your code using if statements example Regards
Andrew
Regards
Andrew
You have to create a boolean field on the object to execute this. try following this,
Field : BooField (type = checkbox)
Yourlogic : Companyamount > 5000$
Trigger
Handler
Cheers