how to set fields on customer record in before Load event , on before submit event and on after submit event? i am trying to create a message record and check this code.