Supply Change Order

Supply change orders are created automatically in the supply planning workbench when you react to an Action message.

For help working with the supply change order record in the UI, see Implementing and Approving a Change Order.

The internal ID for this record is supplychangeorder.

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

See Supply Change Order Actions for the actions associated with this record. For more information about actions and macros, see Overview of Record Action and Macro APIs.

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

Supported Script Types

The supply change order record is scriptable in server and client SuiteScript.

Supported Functions

The supply change order record can only be read, updated, deleted, and searched. It cannot be created, copied, or transformed.

Usage Notes

To work with the supply plan order record, you must enable material requirements planning. To do this, go to Setup > Company > Enable Features. Check the Material Requirements Planning box under Items & Inventory.

Code Samples

SuiteScript 2.x

The following sample shows how to create a supply change order record using SuiteScript 2.x:

          require(['N/record'], function(record) {
    var supplyChangeOrderObj = record.load({type :'supplychangeorder', id: SUPPLY_CHANGE_ORDER_ID, isDynamic : true});
    supplyChangeOrderObj.setValue({fieldId:'memo', value : 'Change Order Memo'});
    supplyChangeOrderObj.setValue({fieldId:'newdate', value : NEW_DATE});
    supplyChangeOrderObj.save();
}); 

        

Related Topics

Implementing and Approving a Change Order
Working with the SuiteScript Records Browser
SuiteScript Supported Records
Items

General Notices