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
OldDeadBugOldDeadBug 

Auto-Number fields in the Order of Execution????

At what point does the auto-number field get generated during an insert, and is it available in the record prior to the first Before Insert trigger (that is before the Workflows are evaluated and field updates are fired)?
micwamicwa
Autonumber fields are not available in the before insert trigger.
OldDeadBugOldDeadBug

OK, so there are now two insert triggers - pre Workflow and post Workflow. I'll assume you mean the field isn't available on the pre Workflow Before trigger, but is available on the pre Workflow After trigger, and therefore on the post Workflow Before trigger?

 

Right?