Set a customer as SubCustomer to a Primary Customer

Below code defines how to set a customer as Sub Customer

// 255-internal id of duplicate, 231- parent customer id

Using 1.0

nlapiSubmitField('customer',255,'parent',231) 

Using 2.0

record.submitFields({
type: record.Type.CUSTOMER,
id: 255,
values:{
‘parent’:231
}})

Leave a comment

Your email address will not be published. Required fields are marked *