How do I create a trigger and trigger handler to auto assign a name for custom field on a custom object when a new record is created? The auto-assigned name should be randomly selected from a list of strings.
I have a custom object Cats__c with a custom field Cat_Nickname__c. When a new record is created for the object, I want the code to generate a random value (chosen from a list of strings) for the field. So basically I want to auto assign a nickname to every cat record that is created.