How can we display the child subsidiaries in the site if it is showing only parent subsidiary

If we want to show the child subsidiaries in the site when only parent subsidiary is showing than we can use nLapi in the SuiteScript by creating a variable.

Sometimes even when the subsidiaries are created in the Netsuite , it will not display in the site. In such case we can use this method for finding the values.

We can create a variable in SuiteScript and can use nLapi rec as in it for finding the field values.
For Eg:

var rec = nlapiLoadRecord('customer', 2630);
        rec.setFieldValue('subsidiary', '17');
            nlapiSubmitRecord(rec);

Here, we have used the field Id and field value . After creating the variable we can set the field values from here also.

It is good to keep the declared variable under the try and catch() method.

Leave a comment

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