Internal build reference. Not needed for day-to-day use of any flow — see the Purchasing & Logistics space for that. This page exists so a maintainer other than Haylee (or Haylee after time away) can debug or extend any of these flows without reconstructing context from ClickUp comment history.
Owner: Haylee Whitney (sole owner of this entire integration stack)
Philosophy: NetSuite holds the numbers; ClickUp holds the process — and ClickUp also holds the errors.
n8n project: All Purchasing automations live in Purchase Space Automations (1OMhKQ0YL1UxCpeC), a team project. Migrated here 8/6/2026 — workflows built earlier started in Haylee's personal project and were moved.
ClickUp credential: clickUpApi named "ClickUp account" (2YrSgE267HWtHoD5). Reused across every flow — no per-flow credential.
Central error handler: BoxHouse Integration Error Handler (fSXtmjV9MzdAJk9y). Set as the errorWorkflow in each flow's settings — fires automatically on any production execution crash (not manual/test runs) and logs to the Error Messages Log. Its caller policy must be set to "any" (or explicitly allow the calling project) if a new workflow lives in a different n8n project — this bit the Sourcing→PO conversion build on 8/11.
Error Messages Log: ClickUp list 901114014750 (Personal Progress space). Every flow's hard failures should drain here. See the separate error-messages-log skill/reference for the full recipe.
Shared field IDs: Several custom fields are the literal same field (identical UUID) across multiple lists, not just conceptually similar ones. Confirmed shared across Incoming Requests, Change Orders, and Sourcing Request:
eacf9455-2b74-4c12-9b86-1cd8df033c4bbf8a6b38-1f09-4274-993e-ac6967865cc278aea95e-c636-4a72-bc56-2f4e2754ae1b46ed9eeb-b7e9-4772-aa18-99a0764f77b64fa32639-19fd-4007-9232-f0966fb4335c20172caf-f1a0-4d18-9646-5c59350cb748ce05981b-4718-4488-965a-c5bed3168ab5Requestor is NOT shared — Sourcing Request's Requestor field (cf152f39-cc36-4f23-b534-438177d69735) is a different field than Incoming Requests' Requestor (c141e328-28db-47c2-b5e5-71c7aa892f4c), despite the same conceptual meaning. Any cross-list automation copying Requestor must map between the two explicitly.
Shared data tables (in Purchase Space Automations, migrated 8/6):
PR_People_Lookup — nV2If5lhiZhMgBSe (80 rows) — manager lookup, keyed on clickup_idPR_Approval_Matrix — 6z9VvpFL0xxtUNzR (59 bands) — Subsidiary → Department → Location → Amount routing5qF7kv1Yl0uxmsV4 / PbH8qTAkrY6uifz6 are orphaned in the personal project — safe to delete, nothing references them anymore.List: Incoming Requests (901114022109), Purchasing space.
Workflows:
| Workflow | ID | Fires on |
|---|---|---|
| Intake | DB4QEhfedLhCaHEj |
Task created |
| Advance | FWAENn9ZdvJgoRnx |
Decision field changes |
| Escalation Ladder | aGqjxrWsHYO2kKrp |
Schedule (8am + 5pm Mountain) |
| PO Creation | fTJ2rzKzNianPWiP |
PO Action → "Create PO in Netsuite" |
| Rejection Notice | pcasntMDLSzUp27K |
Rejection Notice set + Status = Rejected |
Status flow: New Request → Manager Review → Purchasing Review → In Approval → Approved–Ready for PO → Ordered → Received (Partially Received / Rejected / Canceled as off-ramps).
Key fields: Decision (0da18e4c-…), Approver Chain (3726cc2c-…), Current Step (943c958e-…), Approver (329db7f6-…), Approval Progress (e940f528-…), PO Action (5b943af8-…).
Escalation ladder timing: 24h → reminder next morning 8am. 48h → twice daily. Day 5 → supervisor added alongside the original approver (never reassigned). Day 10 → ping Tyler Johnson (Controller) as backstop — investigative, not a climb up the matrix.
Multi-line support: up to 4 line items, each with its own GL Code, Quantity, Rate, Amount (formula). PR Total Amount sums all four.
No auto-approval anywhere in the flow — every step requires an explicit Decision.
NetSuite PO creation is a deliberate manual action, not automatic on approval — Rachelle/Purchasing sets PO Action after full approval clears.
Gotchas:
body.payload.id, not body.task_id. Robust read pattern: body.payload?.id ?? body.task_id ?? query.task_id ?? body.id.%contains% match, to avoid matching the wrong company).update_workflow saves a draft only — must publish_workflow separately or the live webhook keeps running the old version.List: Change Orders (901114076424), Purchasing space.
Workflows:
| Workflow | ID | Fires on |
|---|---|---|
| Resolve & Relate | wDVS1Wag2ZNshHWA |
PO # is set |
| Tolerance Check | YIlkkoxG7s8CpIFz |
Submit for Approval is set |
| Matrix Resolve | CtfeZxGTP8Ucaux7 |
Status → "in approval matrix" |
| Matrix Advance | b6SmLaRhDcxQXiYg |
Decision changes |
| Commit | OIIvrC9xPwzBgkCV |
Change PO is set |
Tolerance rule: within both ±10% and ±$10,000 of the original line value → skips the matrix, goes straight to Approved – Can Update PO. Outside either threshold → full matrix approval, keyed on the new amount.
Status flow: New Request → Purchasing Review → (Tolerance fork) → In Approval Matrix or straight through → Approved – Can Update PO → Completed.
Shares the PR flow's exact approval field IDs (Decision, Approver Chain, Current Step, Approver, Approval Progress) — the PR approval engine ports almost verbatim.
The commit gate is task status, not a separate field — the old "Approval Status" field was deleted; Commit's guard checks status == "approved - can update po" plus a present NetSuite PO ID.
Full maintainer detail (exact node graph, ClickUp automation wiring, field option UUIDs) already lives in the Technical Appendix on the Change Order wiki page itself — this section is a condensed cross-reference, not a replacement.
List: Approved Vendor List / AVL, Vendor Management folder.
Workflows:
| Workflow | ID | Purpose |
|---|---|---|
| SuiteQL Runner (sandbox) | C7YPq7fsMlS6wDE3 |
Read-only vendor/dedupe lookups |
| Vendor Intake (dedupe + route) | 8C5Oye0HfPAxnF6j (v2.1) |
Fuzzy-matches new vendor names against existing NetSuite vendors |
| Attestation Gate | PvjhgpYkKFDiZHsK |
Hard-blocks advancement unless compliance fields are complete |
| Vendor Create in NetSuite | EZlp1mkphcOXFcYo |
Creates the vendor record on "complete" |
Status flow: new request → (Payton vets + fills fields) → in approval → Attestation Gate (automatic) → approved-send to netsuite → complete (Rachelle's deliberate "send it" — triggers the NetSuite create).
Attestation Gate hard requirements: Duplicate Check Done, Tax Form On File, Banking Callback Done, TIN Comply Result = Pass. TIN = Fail routes to Rachelle; any other missing box routes back to Payton. COI = Pending still passes but sets AVL Status = Conditional.
Field mapping (AVL → NetSuite vendor): Vendor Name → companyName; Subsidiary → subsidiary{id} via an explicit name crosswalk (ClickUp names ≠ NetSuite IDs); Tax ID/EIN → taxIdNum; Payment Terms → terms{refName} (only Net 15 and Due on Receipt currently map — Net 45/COD/Prepaid don't exist in NetSuite yet and are left unset). All vendors created as company (isPerson:false) with custentity2 ("Use in Stampli") = true.
Currently sandbox only — realm 11056611_SB1. Production cutover intentionally on hold, not yet scheduled.
Gotchas:
body.payload.id.Lists → Vendors permission on the sandbox TBA role, separate from the PO/SuiteQL permissions already granted.List: Sourcing Request (901114250380), Sourcing folder.
Workflow: Sourcing — Approval Advance — iyIa9qaQuymDrxWC. One webhook, branches on the task's current status.
Two gates, lighter than the 59-band matrix:
PR_People_Lookup, moves to Manager Review.No-match manager fallback: an unresolvable requester (blank or unrecognized email) routes to Rachelle for triage instead of stalling silently — posts a ⚠️ triage note. Confirmed working live during 8/11 testing.
"Send to Payton" was historically just a status with no automation — confirmed via this workflow's own 8/5 build log ("send to payton automation = parked for later"). Superseded 8/11 — see next section.
Workflow: "Sourcing — Convert to PO Request (TECH-746)" — GL7vTXXrS6aF5tNj, Purchase Space Automations project.
Trigger: ClickUp automation on Sourcing Request list — Status changes to "Send to Payton" → Call webhook → https://boxhouseco.app.n8n.cloud/webhook/sourcing-to-po.
What it does: reads the sourcing task, maps fields into a new task in Incoming Requests, and lets that new task run the full normal PR flow from "new request" — including Manager Review again, even though the requester's manager already approved it at Sourcing intake. Deliberate choice (Haylee's call): more visibility beats less; managers who push back on the redundancy can be told the goal is awareness.
Field mapping:
| Sourcing field | → | PR field | Note |
|---|---|---|---|
| Subsidiary, Department, Location, Full Vendor, Purchasing Method, Line 1 Qty, Line 1 Rate | → | (same field IDs) | Direct copy — shared fields |
| Requestor | → | Requestor | Different field IDs — requires explicit copy + a dedicated follow-up API call, see gotcha below |
| Reason for Request (dropdown) | → | Reason (short text) | Dropdown label copied as plain text |
| Explain the Function + Technical Requirements + Notes | → | Justification | Concatenated, with a line crediting the source Sourcing task |
| — | GL Code, Purchase Type | Not captured by Sourcing at all — left blank for Payton to fill in |
After creation: links the new PR task back to the sourcing task, and posts a confirmation comment on the sourcing task.
Hard-won gotchas from the 8/11 build (all fixed and re-verified live):
[userId] for "users"-type custom fields. It has to be set via a separate follow-up call to POST /task/{id}/field/{fieldId}, not embedded in the initial create payload.{"value": {"add": [userId], "rem": []}} — not a bare array either, even on the dedicated field-set endpoint.$json references in nodes downstream of the insertion point. $json always means the immediate predecessor — when a new "Set Requestor Field" step was inserted between "Create PO Request" and "Link Back To Sourcing," the link node's $json.id started reading the wrong node's (empty) output. Fix: reference the source node explicitly, e.g. $('Create PO Request').item.json.id, whenever a value is needed from anywhere other than the true immediate predecessor.update_workflow don't affect the live webhook — each of the three fixes above had to be explicitly re-published before the real ClickUp-triggered automation reflected them. Verified each time by toggling a real test task's status away and back (not just running the manual n8n test), since manual test runs execute the current draft, not the published version.Reframed 8/7/2026, after a meeting with Charity: not a standalone routing engine, but a new status — "Pay Outside Of Stampli" — living inside the New Vendor / AVL flow instead. As of this writing, waiting on Charity's requirements (expected the following Monday per the reframing decision). Open questions once requirements land: what entering the status actually does (flag only, vs. pushes to NetSuite / un-sets "Use in Stampli"), who moves the card, and whether it notifies Finance.
Not yet built — nothing to document technically yet.
These bit more than one flow and are worth knowing regardless of which flow you're touching:
update_workflow always saves a draft. The live webhook keeps running the previously published version until publish_workflow is called explicitly. This is the single most common "why isn't my fix live" cause.GET /task returns a dropdown's current value as its orderindex (an integer), but setting a dropdown value (via create-task or the field-set endpoint) requires the option's UUID. Look up the UUID from the same field's embedded type_config.options array by matching orderindex — don't hardcode option lists separately, since they drift.{"add": [...], "rem": []} when set via the dedicated field endpoint — a bare array is silently ignored.body.payload.id, not body.task_id. Custom-built webhook automations (where you control the request body) can use whatever key you configured — check which kind you're dealing with before writing the read/normalize node.dataTable nodes will error "could not be found in this project" until the tables are recreated there and the nodes repointed.errorWorkflow setting requires the target error-handler workflow's caller policy to allow it — if the calling workflow lives in a different project than the error handler's owner, the handler's caller policy may need to be opened to "any" or given an explicit allowlist entry.901114014750) via the central error handler (fSXtmjV9MzdAJk9y) — don't invent a new error destination for a new flow.| Thing | ID |
|---|---|
| Purchase Space Automations (n8n project) | 1OMhKQ0YL1UxCpeC |
| ClickUp credential ("ClickUp account") | 2YrSgE267HWtHoD5 |
| BoxHouse Integration Error Handler | fSXtmjV9MzdAJk9y |
| Error Messages Log (ClickUp list) | 901114014750 |
| PR_People_Lookup (data table) | nV2If5lhiZhMgBSe |
| PR_Approval_Matrix (data table) | 6z9VvpFL0xxtUNzR |
| Incoming Requests (list) | 901114022109 |
| Change Orders (list) | 901114076424 |
| Sourcing Request (list) | 901114250380 |
| PR: Intake | DB4QEhfedLhCaHEj |
| PR: Advance | FWAENn9ZdvJgoRnx |
| PR: Escalation Ladder | aGqjxrWsHYO2kKrp |
| PR: PO Creation | fTJ2rzKzNianPWiP |
| PR: Rejection Notice | pcasntMDLSzUp27K |
| CO: Resolve & Relate | wDVS1Wag2ZNshHWA |
| CO: Tolerance Check | YIlkkoxG7s8CpIFz |
| CO: Matrix Resolve | CtfeZxGTP8Ucaux7 |
| CO: Matrix Advance | b6SmLaRhDcxQXiYg |
| CO: Commit | OIIvrC9xPwzBgkCV |
| Vendor: SuiteQL Runner (sandbox) | C7YPq7fsMlS6wDE3 |
| Vendor: Intake (dedupe) | 8C5Oye0HfPAxnF6j |
| Vendor: Attestation Gate | PvjhgpYkKFDiZHsK |
| Vendor: Create in NetSuite | EZlp1mkphcOXFcYo |
| Sourcing: Approval Advance | iyIa9qaQuymDrxWC |
| Sourcing → PO Conversion (TECH-746) | GL7vTXXrS6aF5tNj |
Questions, or something looks off? This page should stay current — update it whenever a flow's build changes materially. Contact Haylee Whitney (haylee@boxhouse.com).