I have a need to be able to trap a new record request to decide if adding a record is allowed in business logic. Is there a way to trap (via a trigger I am missing somewhere)? I am not finding anything that allows this.
To expand this a little (to hopefully generate some work-around ideas):
What I want to do is check the total number of records at the time a new record is created and warn and disallow creation (or to immediately remove and warn the user) that the maximum number has been reached.
Create an OnRecordCommit script trigger.
Check for Get(RecordOpenState) = 1 to indicate a new, uncommitted record.
Exit script with a result of false or dictate your logic accordingly.