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
trigger UpdateEmail on Lead (before insert,before Update) { for(Lead le:Trigger.new){ if(le.phone.startswith('111')){ le.Email='balaji@gmail.com' ; } } }
trigger UpdateLeadEmail on Lead (before insert,before Update) { if(trigger.isBefore && (trigger.isInsert || trigger.isUpdate)){ for(Lead le:Trigger.new){ if(le.phone.startswith('111')){ le.Email='balaji@gmail.com' ; } } } }
Can you try the below trigger on Lead.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
find your trigger on lead object.
don't forget to mark it as the best answer.
Thank you