When the Sales Order is in Pending Approval status, checking the “Create WO” checkbox from UE script triggers NetSuite’s native logic, and the corresponding Work Orders are created automatically upon approval. However, once the Sales Order is already approved (and in Billed or Pending Billing status), if we add new line items and check the “Create WO” checkbox from UE script, the checkbox gets selected but the Work Order creation process does not trigger automatically.
We need a way to retrigger the native Work Order creation logic for the newly added Sales Order lines (after approval), so that checking the “Create WO” checkbox again will automatically generate the corresponding Work Orders even when the Sales Order is already approved.