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); } Would this retrieve the Employee Id's of those listed in the Resources tab??If I were to use the following to add a Resource to my new Project would it work? //load project template and gather resources tab var recNewProject = nlapiCreateRecord('project'); recNewProject.setLineItemValue('jobresources', 'jobresource',1,intMyEmployeeId); } Many thanks,Tristan