That's true. Thank you Helmut. Since I have to know the new record ID too in order to make a sys_file_reference, I think I will use the hook processDatamap_afterDatabaseOperations() and DataHandler members "substNEWwithIDs" and "substNEWwithIDs_table".