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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Scripting Project Resources Tab
Hi all,
Can anyone help me out on retrieving and then adding Employees to the Resources tab?
I plan to load an existing Project and retrieve those listed in the Resources tab. Then I would like to create a new Project record and add those previously retrieved to the new Project's Resources tab.
I have read previous posts, but not much final on the matter.
I have read the following posts:
https://usergroup.netsuite.com/users/showthread.php?t=20957&highlight=project+resources
https://usergroup.netsuite.com/users/showthread.php?t=22955&highlight=project+resources
What I have so far is...
//load project template and gather resources tab var recProjectTemplate = nlapiLoadRecord('project',stCurrProjTemp); var arrProjectResources = []; for(var x=1; x<recProjectTemplate.getLineItemCount('jobresources'); x++){ arrProjectResources[arrProjectResources.length] = recProjectTemplate.getLineItemValue('jobresources', 'jobresource',i); } 0