I have workflow which upsert's transactional data and after that create data which related to that transaction.
therefore i need id which is updated or inserted during the workflow.
it seems information in return so im currently call select query by getting max(id) but assuming there is more than 2 people using same workflow will cause problem so i would like to know if there is anything better way to do.
thanks in advance,