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
From Trigger , get the old owner by Trigger.oldMap, and send email to owner email.
Please do this trailhead module.
https://trailhead.salesforce.com/content/learn/modules/apex_triggers/apex_triggers_intro
Feel free to ask if any queries from your code.