It’s been months since I wrote any Suitescript so I’m a little rusty. Trying to create a project task, but it’s not working.
I know I need to tell it which project the task is for somehow, I’m trying to use company, and taking the companyname property from the project, but that’s not working.
var projectTask = nlapiCreateRecord(‘projecttask’);
projectTask.setFieldValue(‘company’,projectName);
projectTask.setFieldValue(‘title’,taskName);
nlapiSubmitRecord(projectTask);
The error I’m getting is “Invalid company reference key “
This is a cached copy. Click here to see the original post.