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!
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
Account Creation using scripts
Hi Ug,
I would like to find out if anyone has done this before: creating a bank account using suitescript. I'am trying to do that and i can't figure out why the script i'm using isn't working fine. Please could someone take a look at this script and let me know what i'm not calling right, if any.
// get employee's information
var record2=nlapiLoadRecord('employee',15)
var name=record2.getFieldValue('firstname')
var alt=record2.getFieldValue('altname')
var strt= name+' Advance Account.\n\n';
//create an account for the employee
var record=nlapiCreateRecord('account')
record.setFieldValue('acctname',strt)
record.setFieldValue('accttype','othCurrAsset')
0