Supply Chain Snapshot Record Actions
The supply chain snapshot record currently supports the refresh action.
For help working with this record in the UI, see Supply Chain Control Tower.
For information about SuiteScript 2.x record actions, see the following help topics:
refresh
Corresponding UI Button |
Refresh |
Action Description |
Takes a snapshot of the transactions executed for an item during a specified time period that includes past and future. |
Returns |
{notifications:[], response:{}} |
Supported Script Types |
Client and server scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
5 usage units |
Since |
2018.2 |
Parameters
See action.execute(options) for details about parameters required for the execution of any action. The refresh action does not support any additional parameters.
Supply Chain Snapshot Refresh Action Syntax
require(['N/action'], function(action){
// action & action list loading
var actionList = action.find({recordType: 'supplychainsnapshot'});
var actionObj = action.get({recordType: 'supplychainsnapshot', id: 'refresh'})
// action execution
var result = actionObj.execute({recordId: 1});
var result = actionObj({recordId: 2});
var result = action.execute({recordType: 'supplychainsnapshot', id: 'refresh', params: {recordId: 1 }});
});