function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
If so, please provide an example.
thanks!
Yes, you can write the email logic in your controller extension class.
No, you can't write methods directly in a trigger. But the trigger can instantiate an object from another class and invoke public methods from there.
thanks, Paul. I have to send a email as soon as a case is closed. Right now I have the email sending code
right in the trigger. Can I write the same code in my controller extension class instead and call it from trigger?
Yes, you can write the email logic in your controller extension class.
No, you can't write methods directly in a trigger. But the trigger can instantiate an object from another class and invoke public methods from there.
All Answers
thanks, Paul. I have to send a email as soon as a case is closed. Right now I have the email sending code
right in the trigger. Can I write the same code in my controller extension class instead and call it from trigger?
Yes, you can write the email logic in your controller extension class.
No, you can't write methods directly in a trigger. But the trigger can instantiate an object from another class and invoke public methods from there.