The scenario is right till point 3. I use a placeholder as the key. As i mentioned i try to achieve something similar to the AutoInc field and Generator. I also have tables with Integers as primary key and the key’s are changed in both master and server, but in this particular case i need to use a string as a key.
Tried with a custom insert command in the schema but that inserts the master rows with the new key but my detail rows have the old placeholder.