Now taking pilot teams: 60 days with the full Pro feature set and a weekly call with the founder. Ask about a place →

Export, index, ask: how Trussmap works

Trussmap reads the C/AL .txt exports you already make, builds an index on your machine, and answers from your code with object and line references.

Step 1 · Export

What does Trussmap need from me?

Export objects as .txt from each environment. Exporting needs a NAV developer licence, or your partner can do it. Trussmap never changes your exports.

built

Step 2 · Index

Step 2: index

tm init asks for your estate, environments and export folders, writes trussmap.toml and builds the first index. Each build records a snapshot, and warns when the newest export is more than 2 days old.

built
tm init --non-interactive --estate northgate --config C:\Demo\Northgate\trussmap.toml --data-dir C:\Demo\Northgate\.trussmap --build --env prod --role PROD --exports C:\Demo\Northgate\exports\prod
Wrote C:\Demo\Northgate\trussmap.toml
  estate    northgate
  data_dir  C:\Demo\Northgate\.trussmap
  prod      PROD  5 objects in C:\Demo\Northgate\exports\prod (*.txt, cp850)

== prod (PROD) ==
Building C:\Demo\Northgate\.trussmap\prod.db
  from C:\Demo\Northgate\exports\prod  (mode folder, encoding cp850)
  Codeunit   1
  Page       1
  Report     1
  Table      2
Done in 0s. 5 objects, 9 fields, 6 procedures.
DB: C:\Demo\Northgate\.trussmap\prod.db  (0.2 MB for 0.0 MB of source)

build --all
  prod         PROD  ok      Snapshot prod@1 (2026-10-24 15:30:49): 5 objects
-- 1 of 1 environment(s) built
Newest exports:
  prod         2026-10-24 15:30:49 (less than an hour old)
Real output, fictitious estate, captured 24 Oct 2026.

Compare and drift

Compare an environment with any export folder, free. built

With Pro, compare Live, UAT and Dev snapshots, see an object's history, and get drift alerts: R1, Live changed without passing through UAT or TEST; R2, UAT holds a stale version that would overwrite a Live change. Pro

Drift is only as fresh as your exports. A nightly script can raise a Windows event your monitoring alerts on.

tm compare prod --folder C:\Demo\Northgate\exports\uat
compare prod@1 (2026-10-24 15:30:49) -> folder:C:\Demo\Northgate\exports\uat
  only in prod       0
  only in folder     1
  different          2
  same               3

only in folder
  Codeunit  50111      Route Planner                          NGT042

different
  Codeunit  50110      Delivery Mgt.                          NGT1.00 -> NGT1.00,NGT042
      procs   ~AssignZone +3/-0; +CheckCapacity
      other   3 line(s) outside procedures and fields
  Table     50100      Delivery Zone                          NGT1.00 -> NGT1.00,NGT042
      fields  +6 Carrier Code Code20
      other   2 line(s) outside procedures and fields
Real output, fictitious estate, captured 24 Oct 2026.
R1: Live changed without passing through UAT or TEST. R2: UAT holds a stale version that would overwrite a Live change.Two timelines of snapshots in build order, Live above and UAT below. Version 1 is built in UAT first and then promoted to Live. Later, version 2 is made straight in Live as a hotfix: that is drift rule R1, because Live changed without passing through UAT or TEST. UAT still holds version 1, which is older than Live's latest change: that is drift rule R2, because promoting UAT would overwrite the Live change. Dev is ignored by both rules.Snapshots, in build orderLivePRODUATpre-productionv1tested, then promotedv1v2 hotfixR1: Live changed without passing through UAT or TEST.still v1would overwrite v2R2: UAT holds a stale version that would overwrite a Live change.Dev is ignored by both rules. Order is the build order, not the clock.

What can my AI assistant do with it?

Trussmap has no chat window. Your assistant calls six read-only tools: code_lookup, compare_envs (Pro), object_history (Pro), deploy_impact (Pro), sql_query (Pro, off by default) and playbook. It can't build the index, run drift or read the audit log.

Tested with Claude Desktop

Claude Desktop smoke test: 12 Oct 2026. Other MCP-capable assistants: Trussmap uses standard MCP, which they document for local servers.

Investigation playbooks

Step-by-step methods your assistant fetches. Code playbooks on every tier; data playbooks in Pro, not yet run against a live NAV database.

playbook (MCP tool call, no arguments)
Playbooks (read one with playbook name=<name>; for an investigation, start with investigate):
- code-paths (code: every tier): From the code index: what writes to a table, who subscribes to its events, who reads or sets a field, and why a record cannot be deleted.
- document-trail (data: Pro and Partner, with SQL enabled, UP-DATA): Every entry one posting made, by document number and posting date, across the ledgers, plus its registers (not yet run against a live NAV database).
- entries-by-key (data: Pro and Partner, with SQL enabled, UP-DATA): The entries for one key (G/L account, item, item at a location, customer, vendor) in a date window, with totals over the whole window (not yet run against a live NAV database).
- flowfield (code: every tier): What a FlowField sums or looks up, from its CalcFormula in the code index, and why the figure on a page can differ from the entries a user adds up.
- investigate (code: every tier): Start here for any question about why NAV posted, calculated, refused or showed something: the seven-step method, the answer rules, and which playbook to fetch next.
- posting-flow (code: every tier): What runs when a document type posts, which events it publishes and which code subscribes to them, and where a posting error message comes from.
- setup-resolver (data: Pro and Partner, with SQL enabled, UP-DATA): Which setup row decided a posting and what it holds, which setup fields hold a G/L account, and the posting-date rules (not yet run against a live NAV database).
Real output, fictitious estate, captured 24 Oct 2026.

What's next?

  • Stale-export check read from SQLplanned

Requirements

  • Windows (64-bit)
  • .txt exports
  • A NAV user licence for every user; SQL access only for live-data queries
  • Validated on NAV 2018

See it on your own estate: ask about a pilot place.

Book a 20-minute call

Facts

MCP tools
Trussmap's MCP server offers six read-only tools.
Drift rule R1
Trussmap's drift rule R1 flags a Live change that never passed through UAT or TEST.
Platform
Trussmap runs on Windows only.