Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Don't miss out on our Question of the week! You only have until tomorrow, May 23, 2024, 2PM ET to comment your answers and earn rewards! Click here for more details.
Community Poll: What sort of content would you like to see more of?

AE: Restlet Suitescript create assemblybuild with inventory detail

edited Jan 26, 2022 1:38PM in Ask A Guru 4 comments


Using a restlet v2.1, I would like to build an assembly for each item in a sales order, the items in the sales order are lot numbered assembly items.

I have tried the below to create an assemblybuild but I get an error saying the subsidiary is missing:

var assBld = record.create({

type: record.Type.ASSEMBLY_BUILD,

        defaultValues: {

          item: item.itemId,

          location: item.location,

          quantity: item.quantity


        isDynamic: true


      var assBldId = assBld.save();

however if I try inserting a subsidiary using the below code I get an error: "You have entered an invalid default value for this record initialize operation.\"

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!


Community Whiz

Quarter 2 ((Apr-Jun 2024) )

This Week's Leaders

This Month's Leaders

All Time Leaders