Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
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!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
SuiteScript 2.0: Setting multiple default subsidiaries on record creation
Overview
It is possible that most of your items fall under a common but multiple subsidiaries. On such cases, you might want to default into those subsidiaries during creation especially if you're creating new items on a regular basis. This article will feature a simple instruction on how to implement such functionality with SuiteScript 2.0 but the logic can also be implemented with a workflow.
How?
- On a client script, add a pageInit function.
- Get the current record instance.
- Add an if statement to use the default only on record creation.
- Note: This is important to give your users an option to change the subsidiary after record creation.
Tagged:
0