Hello,
Sorry, I am relatively new to X++, so apologize for asking what might have a simple solution.
We have custom code to update custom tables with a parent/child relationship when a sales order is confirmed. The code uses ttsbegin/ttscommit for inserting new records.
The issue we have is when the transaction is complete, it writes a child record before it writes the parent record, in general, not an issue, except we are also using dual write to a CE environment and the child table has a lookup to the parent table in CE. Since the parent record isn't written first, we are getting an error in dual write on the lookup in CE.
Is there a way to make sure that the parent record is written first?