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

Rookie Asked on December 9, 2020 in SuiteScript.
Add Comment
1 Answer(s)

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.

Rookie Answered on December 16, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor