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.
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