Salesforce Fact #502 | addError() on audit fields

Applying addError() method on audit fields does not cause any impact. Although these fields are not visible in the edit detail page, the error message still appears similar to other addError messages.

Attached are the screenshots.



Note: The code snippet has no business logic, it is only for demonstration purpose.

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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