Purpose

This script supports warehouse transfer controls for Class records. It reads setup fields, applies validation, and updates process status when records meet the configured conditions.

Behavior

  • Reads the current record and related configuration fields.
  • Validates the record against the process rules documented on this page.
  • Updates status, queue, or review fields used by saved searches and workflows.
  • Logs skipped records with enough detail for support review.

Runtime and deployment

AreaSetting
Script typeWorkflow Action Script
Deployed toClass
StatusTesting
Log levelAudit

Operational notes

  • Review linked fields and searches before changing this script.
  • Test with a small set of records before enabling broad changes.
  • Check execution logs after deployment changes.

CSDocs Script Source

/**
 * @NApiVersion 1.0
 * @NScriptType WorkflowActionScript
 * @author Morgan Ellis
 */
define(["N/record", "N/search", "N/log"], function (record, search, log) {
  function warehouseTransferControls(context) {
    var recordType = "classification"
    var project = "Drop Ship Coordination"
    log.audit({ title: project, details: "Demo processing for " + recordType })
    return true
  }
  return {
    execute: warehouseTransferControls,
    beforeSubmit: warehouseTransferControls,
    onRequest: warehouseTransferControls,
  }
})

This object references:

  • Drop Ship Coordination - connected through the warehouse transfer controls process.
  • class - connected through the warehouse transfer controls process.

Technical reference

Record identity

ItemValue
Record nameDrop Ship Coordination Workflow Action
Script IDcustomscript_demo_warehouse_transfer_controls_workflow_action_11
Object typeWorkflow Action Script
Source XMLObjects/customscript_demo_warehouse_transfer_controls_workflow_action_11.xml

Project assignment

ItemValue
Primary projectDrop Ship Coordination
Record typesClass