You need to sign in to do that
Don't have an account?
Thakkar Parth
Change Lead status using Trigger
Can anyone please help me out to get a tigger . I would like to change Status of a Lead and notification should be sent from the owner of that lead .
I know notification can be sent using Workflow . But i dont know how to write Trigger.Help appreciated.
Thanks,
Marc
I know notification can be sent using Workflow . But i dont know how to write Trigger.Help appreciated.
Thanks,
Marc
So you want to work this with the help of trigger.
ok, just a question When (i.e. after Insert, update ) and how to notify the owner (i.e Email)?
Regards
Virendra
Means every time when the status field is updated. it'll notiy the owner with an email.
Hi Marc,
Create Atrigger on Lead:
If your event is after update then you have to maintain a static boolean variable with default value false and in trigger set that value to true. and before update in trigger check that boolean value.
let us know if you have any question .
please don't Forget to Mark this as your best answer if it works fine for you
Regards,
Grazitti Team
Web: www.grazitti.com
Thanks for the very quick response .I've written something like this but its giving me an error.
Error : Error: Compile Error: Variable does not exist: OwnerId at line 19 column 24
Can someone please help me to solve my error . I think this trigger should work. Thanks again
Just a littel bit change your code
like in line 19 write
And in line 37 write
And also add
After emails.add(email); } }
So Your full code is like
Regards
Virendra