I use the last index retrieve command often
sc_lookup(ps,“select last_insert_id()”);
[GPCIndex] = {ps[0][0]};
It has always done the job for me, but I recently turned on the security log which logs all transactions.
Right after I do my table update, it inserts a log entry, and that is the one that is retrieved.
Has anyone experienced this?
Ideally I would like to specify the table of the last index entry
L