Batch Processing
Script Structure
import batchAction from 'batch_script';
batchAction.setGuard((ctx) =>
{
// Return false to skip this row
return ctx.importData.ID !== '';
});
batchAction.setAction((ctx) =>
{
// Process a single row — return true on success, false on failure
const id = ctx.importData.ID;
// ...
return true;
});
batchAction.setAfterBatch((ctx) =>
{
// Runs once after all rows are processed
// ctx.importData is empty here — use ctx.importSession for accumulated data
});Callbacks
Callback
Runs
Return
Purpose
The Context Object
Property
Description
Typical Pattern — Create or Update
Logging
Scheduled Execution
Last updated
Was this helpful?