Salesforce Fact #761 | Invalid email value in trigger

What happens when an email field is evaluated to an incorrect value from a trigger. The below error is encountered:

data changed by trigger for field <fieldName>: invalid email address: (value has been hidden)

In this example, we have a dummy email field on contact which is populated with an invalid value from trigger and is eventually encountered as an error.

Note: The code snippet is only for quick demonstration purpose.

Attached are the screenshots.




Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow