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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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