Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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); }