Cleanup Orderful Transactions

Delete failed/duplicate "Orderful Transaction" (customrecord_orderful_transaction) records and their customrecord_orderful_edi_trx_join rows in a customer's NetSuite, keeping the valid (Success) record for each consolidation group — and optionally delete the matching unsent transactions on the Orderful platform. Use after an outbound document was (re)fired several times during debugging and left Error-status duplicates, or when the user says "clean up the failed transactions", "remove the duplicate Orderful Transaction records", "delete the failed OTs for this invoice/order", "clean up the invalid trx and joins", or "/cleanup-orderful-transactions". Dry-run by default; deletes only Error duplicates that have a Success sibling; never deletes the valid record.

Orderful Updated

File contents

Orderful/orderful-netsuite-skills/tree/main/skills/cleanup-orderful-transactions commit b4c0d0f4fd

Frequently asked questions

npx skillmds@latest add orderful/cleanup-orderful-transactions