Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
We’re excited to announce that the 2025 Community Recap is now available! This special recap highlights the amazing contributions and achievements of our members over the year and celebrates the collective success of our community.
Check your personalized recap to see the impact you made in 2025 and how your efforts helped shape our community’s growth and success.
View Your 2025 Community Recap
Thank you to everyone for your passion, collaboration, and support. Here’s to building an even stronger community together in the year ahead!
Setting dates in 2.0
I'm having a problem setting dates in a 2.0 User Event Script.
I have a custom date field on a Sales Order and I need to set the date. Here's a simple code snippet:
must_ship = Date('10/04/2017');
orderRecord.setValue({
fieldId: 'custbody_must_ship_date',
value: must_ship
});
The error returned is "The field custbody_must_ship_date contained more than the maximum number ( 10 ) of characters allowed."
This error leads me to believe I should be sending a string. 10 characters holds a date perfectly. However, If I try setting a string instead of a Date object, I get this error: "You have entered an Invalid Field Value 10/04/2017 for the following field: custbody_must_ship_date"