How to load / copy Manufacturing Routing in SuiteScript
I have an application where I need to copy an existing routing, change some fields then save the new routing.
When I run the code:
var newrout = record.copy({type: record.Type.MANUFACTURING_ROUTING, id:oldid});
I get a SSS_INVALID_SUBLIST_OPERATION error. This error seems out of place based on what I am trying to do.
Does anyone know what might be going on here or if there is another way to accomplish this task?
Thank you,
Mike
Hello,
I’d suggest examining (like in debugger, console, or logs) the record’s sublists prior to saving to see if there are missing values. Or look in the UI when you copy a record, and take note of any sublist values that are not transferred from the old to the new record. Reference Suite Answer Id: 86025.
Thank you.