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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Set Status on phone call record just created
I have created a phone call record to log a call when required when a Contact record is saved using an After Submit Scipt.
I can set all the fields I want except the status to 'Completed' rather than the default of 'Scheduled'.
Sample code with carious attempts commented out below. any ideas?
recordCreated.setFieldValue('title',title );
recordCreated.setFieldValue('organizer', salesrep);
recordCreated.setFieldValue('contact', contact_id);
recordCreated.setFieldValue('phone', phone);
//recordCreated.setFieldValue('priority', 'high'); this did not work either??!!
recordCreated.setFieldValue('message',comments);
//set field Values - for multiselect field
var state = new Array(1);
state['0'] = 'completed';
//recordCreated.setFieldValues('status', state); 3rd attempt