Dynamics 365fO, how to handle transaction scope?

When connecting to Dynamics 365 for Operations, how do you handle transaction scopes? For example, you need to insert a sales order with multiple lines. When inserting one of the lines failed, the sales order header should not have been committed. How will your tool support this scenario?

(1) Answer