+ Start a Discussion
tcherlettcherlet 

insert/update account via API + Field Type Email problem

When I insert/update PersonEmail address of an Account through API with an invalid emailaddress I get: Email: invalid email address: 

 

But in my before insert/update trigger I have implemented logic that corrects if it's an invalid emailaddress and corrects it to a valid emailaddress?

 

So my question is why I still get the error of invalid emailaddress, is this because Field Type is enforced before it's enters the before trigger or is it something else?