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.
Community Poll: What sort of content would you like to see more of?

NSC | Default Shipping Address Creation in SuiteScript 2.0


A user desires to establish a new AddressBook entry and designate it as the default shipping address through Scripting within a Customer record.


Below is a sample script illustrating the process of creating a basic address entry with default shipping setting within a Customer record using N/record in SuiteScript 2.0.

var rec = record.load({
        type: 'customer',
        isDynamic: true,
        id: XXX //internal ID

        sublistId: 'addressbook'
    sublistId: 'addressbook',
        fieldId: 'label',
        value: 'Script sample label'
    sublistId: 'addressbook',

Richard James Uri | SuiteCloud and WMS Tech


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