Create Trigger
Create a trigger that get's fired everytime you insert a new record
<cfquery name="
" datasource="">
create trigger TRIGGER_NAME
on TABLENAME
for
insert as select
COLUMN_TO_RETURN
from inserted
</cfquery>

TRIGGER_NAME = the name of trigger
TABLENAME = the name of table
COLUMN_TO_RETURN = the name of the column data to return (i.e ID)
 

cover
Buy Fusebox 5 & FLiP: Master-Class ColdFusion Applications
cover
Buy Fusebox 4 & FLiP: Master-Class ColdFusion Applications
cover
Buy ColdFusion Lists, Arrays, & Structures
cover
Buy ColdFusion XML Objects

Dedicated and Shared CF Hosting 2021