How can I find new rows after an ApplyUpdates?

If I have a table to which I add some new rows, then I post these to the server with an ApplyUpdates, how can I find these rows again?

I have a scenario where a function I’m writing needs to do this and return a list of the newly added primary keys, which are IDENTITY fields. Obviously the dataset will use temporary negative IDs as I insert the records, which will then be replaced with the actual values after the ApplyUpdates call. My question is how can I find these rows again in order to obtain the IDs so I can return them?

you can use OnBeforeMergeDelta event of datatable

1 Like

Interesting thanks, I’ll take a look.