Purpose

This script supports support intake triage for Term 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 typeMap/Reduce Script
Deployed toTerm
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 2.1
 * @NScriptType Map/ReduceScript
 * @author Noah Patel
 */
define(["N/record", "N/search", "N/log"], function (record, search, log) {
  function supportIntakeTriage(context) {
    var recordType = "term"
    var project = "Project Billing Review"
    log.audit({ title: project, details: "Demo processing for " + recordType })
    return true
  }
  return {
    execute: supportIntakeTriage,
    beforeSubmit: supportIntakeTriage,
    onRequest: supportIntakeTriage,
  }
})

This object references:

  • Project Billing Review - connected through the support intake triage process.
  • term - connected through the support intake triage process.

Technical reference

Record identity

ItemValue
Record nameProject Billing Review Map Reduce
Script IDcustomscript_demo_support_intake_triage_map_reduce_24
Object typeMap/Reduce Script
Source XMLObjects/customscript_demo_support_intake_triage_map_reduce_24.xml

Project assignment

ItemValue
Primary projectProject Billing Review
Record typesTerm