You need to sign in to do that
Don't have an account?
triggers and assignment rules
Good morning,
So my question may be very basic in nature for a seasoned developer but I am not quite there yet.
I have a Case trigger that sends an sms page to the new owner of the case. Looking at the order of execution, assignment rules will fire after a trigger so, to me, that would mean that the sms page would get sent to the wrong person in most cases. Below is a shorthand flow of events as I see them:
New case is created
Triggers fire and send an sms page to the owner of the case(which will be the person who just created it)
assignemnt rules fire and change the owner to the intended owner.
Case is commited to the DB
the new owner has not recieved the SMS
Any insight would be greatly appreciated.
Thanks,
What you can do in this case is have your trigger call a @future method to send the SMS. This means that the assignment will have already occurred by the time the change in ownership has occurred.