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.
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.
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)
Step 3 · Ask
Step 3: search the code
Find objects, read one procedure, see where a table is used. When the code can't tell, Trussmap says it cannot determine.
Page 50120 Delivery Zones NGT1.00
Report 50130 Zone List NGT1.00
Table 50100 Delivery Zone NGT1.00
-- 3 match(es)
Real output, fictitious estate, captured 24 Oct 2026.
--- Codeunit 50110 AssignZone [Local] lines 120-125 ---
LOCAL PROCEDURE AssignZone@2(VAR DeliveryZone@1000 : Record 50100);
BEGIN
IF DeliveryZone.Blocked THEN
ERROR(ZoneBlockedErr,DeliveryZone.Code);
DeliveryZone.TESTFIELD("Route Code");
END;
Real output, fictitious estate, captured 24 Oct 2026.
Table 50100 Delivery Zone: 7 reference(s) in 4 object(s)
declaration VAR parameter:
Codeunit 50110 Delivery Mgt.: 120 in AssignZone (DeliveryZone)
declaration variable:
Codeunit 50110 Delivery Mgt.: 110 in AssignZones (DeliveryZone)
property DataItemTable:
Report 50130 Zone List: 194
property SourceTable:
Page 50120 Delivery Zones: 153
operation FINDSET:
Codeunit 50110 Delivery Mgt.: 113 in AssignZones (DeliveryZone)
operation NEXT:
Codeunit 50110 Delivery Mgt.: 116 in AssignZones (DeliveryZone)
call procedure:
Table 50100 Delivery Zone: 20 in OnValidate (CheckRoute)
Cannot determine: reads and writes through RecordRef or FieldRef, which name the table only as the code runs.
Cannot determine: calls through a Record, Page, Report, XMLport or Query variable, and bare calls inside WITH or on an own record that reach a table's procedure, are not in the index.
Cannot determine: Job Queue entries, web services and NAS sessions, which run objects from data, not code.
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.
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
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.
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.
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).
What's next?
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 callFacts
- 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.