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
Help needed: trying to update custom Entity field in contact
Hi everyone,
I'm trying to use SuiteScript to update a custom Entity field within a contact upon creation of that contact. I've been following the documentation and examples dotted around, even so far as to download and use Eclipse IDE with JSEclipse plugin.
The problem is I don't fully understand how to write the script, OR how to properly add it to NetSuite. I wonder if someone ca give me some help, in laymans terms?
Here's the script I've put together.. it's very simple at this stage:
filename: methods.js
function addPasswordToContact(type) { if (type == 'create') { var record = nlapiGetNewRecord(); record.setFieldValue("custentitymember_password","testtest"); } } 0