Change data before post on server side

Hello,

Is there a safe way to change data on serve-side before post SQL's?
one of all ideas is to get the ID's and fill PK fields before posting.

The only option you have is to use the BeforeStatement event:

That is fired before each SQL statement is executed. There you have info such as the SQL statement being executed, and the parameter names, types and values being used.

I'm not sure what you mean by "safe way" though.