Trying to transform a NetSuite sales order using
var fulfillment = record.transform({
fromType: record.Type.SALES_ORDER,
fromId: currentRecord.id,
toType: record.Type.ITEM_FULFILLMENT,
isDynamic: true
});
getting the error "USER_ERROR","message":"You must enter at least one line item for this transaction."
The fulfillment contains 7 line items but after fulfillment.save() it returns the error that there are no line items added to the fulfillment.
Is there a way to select which rows to fulfill? Thinking about how, when looking at the sales order, you click fulfill and then can click a checkbox for which line items you want to include in that fulfillment.
thanks