Group

You use the group record to define groups of contacts, customers, employees, partners, or vendors.

The internal ID for this record is entitygroup.

In the UI, you access this record at Lists > Relationships > Group > New.

For help working with this record in the UI, see Working with Groups.

See the SuiteScript Records Browser for all internal IDs associated with this record.

Note:

For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following help topics:

Supported Script Types

The group record is scriptable in server SuiteScript only. None of the user events are supported.

Supported Functions

This record is fully scriptable, which means it can be created, read, updated, deleted, and searched.

Usage Notes

Be aware of the following details when working with this record:

Code Sample

The following sample shows how to create a static group record.

          var initValues = new Array();
initValues.grouptype = 'Employee';
initValues.dynamic = 'false';
var staticRecGroup = record.create({
    type: 'entitygroup',
    defaultValues: initValues
});
staticRecGroup.setValue({
    fieldId: 'groupname',
    value: 'WC1'
});
staticRecGroup.setValue({
    fieldId: 'subsidiary',
    value: '1'
});
staticRecGroup.setValue({
    fieldId: 'ismanufacturingworkcenter',
    value: true
});
staticRecGroup.setValue({
    fieldId: 'machineresources',
    value: '11'
});
staticRecGroup.setValue({
    fieldId: 'laborresources',
    value: '22'
});
var recId = staticRecGroup.save(); 

        

Related Topics

Working with Groups
Working with the SuiteScript Records Browser
SuiteCloud Supported Records
Lists

General Notices