You need to sign in to do that
Don't have an account?
adiaz
Help with Apex Code - Before Update
Hello,
I began writing an apex that auto populates fields in my case based on a lookup field before saving (hope that made sense :) ).
My lookup field relates the case to an account by account number. I have some field such as main contact, phone, address, etc. that I would like to auto populate once the lookup field is populated before submitting/saving.
Is this possible with a Before Update? Can someone help me out with the first few lines? Thanks!
Hi,
Here is a sample you can use, didn't test it but you should understand the logic to use. Also you can only use "before insert/update" since you make changes to the record you work on which becomes read only at "after insert/update" stage.
Cheers,
Fred.