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

What is the most efficient way to get the Manager's email address for the owner of a case?
I want to set up a trigger to populate a custom field with the email address of the Manager of the Owner of a Case. (if he exist)
I know I can do it with a formula on the custom field, however this is only works when the case is created. The case owner is going to change fairly regulary hence the need for a trigger (on case update). The second reason in need this as a trigger event is because we need the custom field to be a field type Email, so it can be used in our Milestone warnings (email alert)
I know I can do it with a formula on the custom field, however this is only works when the case is created. The case owner is going to change fairly regulary hence the need for a trigger (on case update). The second reason in need this as a trigger event is because we need the custom field to be a field type Email, so it can be used in our Milestone warnings (email alert)
Hope this helps.
Best Regards
Veenesh
All Answers
Your trigger is not bulkified. Avoid doing SOQL inside a for loop.
Hope this helps.
Best Regards
Veenesh