Resource Group
Resource groups enables you to create a group of resources to be assigned together to a single project task. For example, if you have a group of engineers that typically work on tasks together, you can create a resource group for these engineers. Then, when creating project tasks, you can assign the group to the task instead of each engineer. When assigning groups to a project task, you can choose to divide the estimated work evenly across the members of the resource group or you can assign each member the estimated work entered for the task. It is available when the Project Management feature is enabled.
For help working with this record in the UI, see the help topics Creating Resource Groups and Working with Resources in Project Management.
The internal ID for this record is resourcegroup
.
See the SuiteScript Records Browser for all internal IDs associated with this record. For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser.
For information about scripting with this record in SuiteScript, see the following help topics:
Supported Script Types
The Resource Group record is scriptable in server and client SuiteScript.
Supported Functions
This record is fully scriptable, which means that the record can be created, updated, copied, deleted, and searched using SuiteScript.
Usage Notes
There are five fields used for filtering in the UI only – subsidiary, billingclass, class, department, and location.
The system notes sublist is search-only. The resourcegroupmembers sublist contains only one editable column: resource. Other columns are read only: subsidiary, billingclass, unitcost, supervisor, class, department, and location.
Code Samples
The following sample shows how to create a new Resource Group with name and one resource.
require(['N/record'], function(record) {
var resourceGroup = record.create({
type: 'resourcegroup',
isDynamic: true
});
resourceGroup.setText({
fieldId: 'name',
text: 'Resource Group Name'
});
resourceGroup.selectNewLine({
sublistId: 'resourcegroupmembers'
});
resourceGroup.setCurrentSublistValue({
sublistId: 'resourcegroupmembers',
fieldId: 'resource',
value: '45'
});
resourceGroup.commitLine({
sublistId: 'resourcegroupmembers'
});
var resourceGroupId = resourceGroup.save();
});
Related Topics