lastautonumber

Displays the last auto-generated number.
Putting [lastautonumber] in your template displays the same value as the last auto-generated number used in the last [append] or [replace] context that used the 'AUTONUMBER' parameter. Only valid for the current template instance.

Example WebDNA code:
[append db=mydata.db&autonumber=ID]name=Jack&lastname=Jones[/append]
The last autonumber in mydata.db = [lastautonumber]
Results: The last autonumber in mydata.db = 73561