How mimic autonumber for IDs?

Original text of this message