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
Project task Assignee sublist
Hi,
I am trying to load a project task and populate assignees but it is giving me error saying I am trying to edit a static sublist.
I have tried both ways of submitting the assignees-
1) Load project task record and add line item to assignee
2) Select current line item and then commit the line item
None of them is working. Can someone please explain why and where am I doing the mistake.
nlapiSelectNewLineItem('assignee'); nlapiSetCurrentLineItemValue('assignee','resource',43345, true); nlapiSetCurrentLineItemValue('assignee','estimatedwork',0,true); nlapiSetCurrentLineItemValue('assignee','unitcost',0.00,true); nlapiCommitLineItem('assignee'); var current_record = nlapiLoadRecord('projecttask',31053); current_record.setLineItemValue( 'assignee','resource', 43345, 2 ); current_record.setLineItemValue('assignee','estimatedwork',0,2); current_record.setLineItemValue('assignee','unitcost',0.00,2); nlapiSubmitRecord(current_record, true); 0