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.
attaching new message to existing case
I the following script to auto create support cases:
var newrecord = nlapiCreateRecord( 'supportcase' );
newrecord.setFieldValue( 'assigned', a );
newrecord.setFieldValue( 'company', b );
newrecord.setFieldValue( 'title', c );
newrecord.setFieldValue( 'incomingmessage', d );
var caseid = nlapiSubmitRecord( newrecord, false, true );
// this script will be used in an automated process, hence ignoring mandatory fields and sourcing
This works terrifically, creating a new Case and assigning 'incomingmessage' to a new message attached to the newly created case.
As a followup I tried to attach a second message to the case with the following script:
var record = nlapiLoadRecord( 'supportcase', caseid );
record.setFieldValue( 'incomingmessage', 'All your base are belong to us.' );