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
Hey Folks,
Is it possible to validate data in before insert trigger instead of adding error?
Regards..
Hi John,
Data validation on records going through a trigger should be done in the beforeInsert/beforeUpdate events only.
here is how the code could look like:
for (Account acct: trigger.new){ acct.Description = acct.Description.deleteWhitespace(); }
Let me know if that helps
Nathalie
Hi John,
Data validation on records going through a trigger should be done in the beforeInsert/beforeUpdate events only.
here is how the code could look like:
Let me know if that helps
Nathalie
All Answers
Hi John,
Data validation on records going through a trigger should be done in the beforeInsert/beforeUpdate events only.
here is how the code could look like:
Let me know if that helps
Nathalie