You need to sign in to do that
Don't have an account?
Sarah Robertson
A trigger which fires when you create an account, but before the user enters data and saves the record.
Hi
I was wondering if someone might be able to help me with this requirement. I was looking to have a trigger which enters a value for a picklist field but was stuck on the event condition. What i wanted to happen is for when the user creates an account and the blank form loads for that field to be populated, but before the user enters their own data and then saves. If that makes sense ? Is it possible ?
Thank you
-You mention that a user is creating an account. This means insert, although you might want this trigger fired on update as well.
-Also, use the before condition. 95% of the time use before. If it's wrong, SFDC will let you know. Change it then. But, rule of thumb is that you'll use the before condition unless you need to access id, and other system information that is only accessible after the save event happens.