gabyrdzlobaton
10/28/2021, 9:51 PMtype: "error.SuiteScriptError",
name: "SSS_INVALID_SUBLIST_OPERATION",
message: "You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist."
This is the transform code:
var fulfillmentRecord = record.transform({
fromType: record.Type.SALES_ORDER,
fromId: salesOrderId,
toType: record.Type.ITEM_FULFILLMENT,
isDynamic: false
});
And I'm trying to remove the lines like this:
fulfillmentRecord.removeLine({
sublistId: 'item',
line: x
});
I want to remove the lines because the fulfillment will not include all the items on the sales order, so I need to remove the items that shouldn't be there.
Does anyone have any idea what I'm doing wrong?battk
10/28/2021, 9:52 PMbattk
10/28/2021, 9:52 PMbattk
10/28/2021, 9:52 PMstalbert
10/29/2021, 12:24 AMitemreceive = false
or something like that.gabyrdzlobaton
10/29/2021, 2:20 PM