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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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