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
Error Creating Project Task in SuiteScript
Hello,
I'm trying to create a new project task on an existing project record on client-side. When I do it, I get a javascript error: "TypeError: Cannot read property 'type' of undefined." This gets thrown when "nlapiSubmitRecord" is called. Below is my code:
var projectTask = nlapiCreateRecord('projecttask'); projectTask.setFieldValue('company', 3304); // my existing project's internal id projectTask.setFieldValue('title', 'Test Title'); nlapiSubmitRecord(projectTask, true, true); // here's where it blows up. Any help would be appreciated. Thanks.
0