Supply Chain Snapshot Simulation

The supply chain snapshot simulation record is used to provide a simulation of a transaction to determine what the effect that transaction would have on your inventory.

The supply chain snapshot simulation record is only available when the Supply Chain Control Tower feature is enabled at Setup > Company > Enable Features, on the Items & Inventory subtab. When the feature is enabled, you can access a list of supply chain snapshot simulation records in the UI by going to Lists > Supply Chain > Supply Chain Snapshot Simulations.

For help working with the supply chain snapshot record in the UI, see Supply Chain Control Tower.

The internal ID for this record is supplychainsnapshotsimulation.

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 in the NetSuite Help Center.

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:

Supported Script Types

The supply chain snapshot simulation record is scriptable in server and client SuiteScript.

Supported Functions

The supply chain snapshot simulation record can be created, updated, deleted, and searched using SuiteScript.

Usage Notes

Item type is not scriptable.

The system notes are search only.

Code Samples

The following sample shows how to create a supply chain snapshot simulation.

          function createSimulation(location, item, quantity, date) {
    var simulationRecord = nlapiCreateRecord('supplychainsnapshotsimulation', {recordmode: 'dynamic'});
    simulationRecord.setFieldValue('memo', 'Simulation for item id=' + item);
    simulationRecord.setFieldValue('transactiontype', 'PurchOrd');
    simulationRecord.setFieldValue('quantity', quantity);
    simulationRecord.setFieldValue('status', '5');
    simulationRecord.setFieldValue('itemnamenumber', item);
    simulationRecord.setFieldValue('supplylocationdate', date);
    simulationRecord.setFieldValue('supplylocationsubsidiary', 1);
    simulationRecord.setFieldValue('supplylocation', location);
    var simulationKey = nlapiSubmitRecord(simulationRecord);
    return simulationKey;
} 

        

Related Topics

General Notices