You need to sign in to do that
Don't have an account?
Trigger on Account can't run the condition on Lead Conversion
Hi
Lead Converted to Account/Contact
On checking the "Enforce Validation and Triggers from Lead Convert" checbox on Lead-->Setting It will run my [Account After update,After Insert] trigger on Lead Conversion. But While Converting Lead if we create a new Account for that lead then Insert trigger on Account will sent out a notification mail.
If we assign the lead to the existing Account then Update trigger on Account is called, there we are checking for[ Old value vs new value for Account owner] on every update.In this case the old and new owner is same So trigger failed.Can Anybody help on this issue
Thanks
Marris
Hi Marris,
Can you please provide error you are experiencing?
Also is your code is something like (in the after update trigger):
For (Account a: trigger.new)
{
Account oldRecord = trigger.oldMap.get(a.ID)
if (a.ownerId!=oldRecord.OwnerId)
{
......
}
}
?
Hi Roy
It is not erroring out. As the old and new value in trigger are same it goes out without sending a notification mail
Thanks
Marris