Item Revision

For help working with this record in the UI, see Bill of Materials Member Control for Assembly Items.

The internal ID for this record is itemrevision.

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

Client SuiteScript is not supported for this record. It is scriptable in server SuiteScript only.

Supported Functions

The item revision record is fully scriptable, which means that it can be created, updated, copied, deleted, and searched using SuiteScript.

Code Sample

The following sample shows how to create an item revision record:

          function afterSubmit(type){                                         
    var itemRev = record.create({
        type: record.Type.ITEM_REVISION
    });
    itemRev.setValue({
        fieldId: 'name',
        value: 'revision name 222'
    });
    itemRev.setValue({
        fieldId: 'item',
        value: '109'
    });
    itemRev.setValue({
        fieldId: 'memo',
        value: 'revision memo'
    });
    itemRev.setValue({
        fieldId: 'effectivedate',
        value: new Date('3/4/2012')
    });
    var id = itemRev.save();
 } 

        

Related Topics

General Notices