Remove deleted child records via integration

  • Updated

After deleting a single order line in the ERP, you can add a job definition step to delete the child entries upon refresh of the parent record. Refreshing the order history is the primary scenario where this would be used. This behavior applies to Order History, Invoice History, and Shipment entities.

The job definition step deletes Order History Lines, Invoice History Lines, Shipment Packages, and custom properties for the order header records received in the Order Header Refresh step. The subsequent step (Order History Line Refresh) should then repopulate Configured Commerce with the remaining order lines from the ERP.

Use the following steps to incorporate the Delete Children job definition step into an integration job.

  1. Go to Admin Console > Administration > Jobs > Job Definitions
  2. Either Edit an existing Job Definition or Create a new Job Definition
  3. Go to Details > Delete Behavior and change the Delete Children toggle to show Yes.

The option to delete children is only presented for target objects that have children.