audit-outbound-rules

Audit Orderful outbound transformation rules against partner guideline mandatory codes.

6|6|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/Orderful/orderful-netsuite-skills --skill audit-outbound-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-outbound-rules
Source: https://github.com/Orderful/orderful-netsuite-skills/tree/main/skills/audit-outbound-rules
Command: npx skills add https://github.com/Orderful/orderful-netsuite-skills --skill audit-outbound-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill audits a customer's per-relationship outbound transformation rules to prevent misconfigured allowlists from silently stripping required EDI segments before validation.

Core Features & Use Cases

  • Rule pre-flight auditing: Compares Orderful outbound rule allowlists at /v2/rules against the partner guideline’s mandatory codes to detect narrower-than-spec whitelists.
  • Function-AST decoding: Interprets Orderful rule engine function ASTs (e.g., whenThen, NOT, isInArray, REMOVE) to extract the effective keep/remove logic.
  • Focused mismatch reporting: Flags specific rules and paths where the partner spec requires codes that the rules will remove, producing downstream “missing field” errors.
  • Safe remediation workflow: Supports an optional, approval-gated backup and PATCH process to correct misconfigured rules and then re-verify validations.

Quick Start

Run the audit to check outbound transformation rules for a specific customer relationship and transaction type before writing new outbound JSONata.

Frequently Asked Questions about audit-outbound-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does Orderful post-rule validation report missing EDI segments that appear present pre-rule?

Outbound transformation rules with narrower allowlists than the partner guideline specification silently strip required EDI segments before validation. Auditing per-relationship rules against mandatory partner codes detects mismatches where keep/remove logic causes missing field errors.

How do I audit Orderful outbound rules to catch allowlist mistakes before they break EDI?

Fetch rules via /v2/rules, decode function-AST logic like whenThen and isInArray, and cross-reference effective keep/remove paths against mandatory partner guideline codes to locate rules that will remove required segments.

Can I safely patch misconfigured Orderful outbound rules after finding allowlist mismatches?

Yes, you can generate an approval-gated backup-and-PATCH plan to correct misconfigured rules, then re-verify validations under /v3/validate to ensure required segments are no longer stripped.

How does function-AST decoding work for Orderful transformation rules?

Function-AST decoding interprets Orderful rule engine structures like whenThen, NOT, isInArray, and REMOVE to extract the effective keep or remove logic applied to outbound EDI document paths.

When do I need to run an outbound rules audit for EDI onboarding?

Run an audit during onboarding or when troubleshooting outbound document types where post-rule validations report missing segments that appear present pre-rule or under /v3/validate.

Does Orderful rules auditing work with JSONata and NetSuite integration workflows?

Orderful rules auditing applies to per-relationship outbound transformation rules and validates them against partner guidelines before writing new outbound JSONata for NetSuite or other integration workflows.