function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Preventing duplicates



I have a question about triggers.


Is there a way to prevent a record from being inserted by checking the record on a before insert trigger?


Thanks a lot



Best Answer chosen by Admin (Salesforce Developers) 

Mark a field as a unique external id.