AI Assistant in the ForNAV Designer (beta)

The ForNAV Designer 9.0 (beta) has an AI Assistant: you can describe a report change in plain language, and the assistant builds or edits the layout in the open Designer for you.

The AI Assistant window in the ForNAV Designer

The assistant works on the reports that you have open in the same way you would: it adds data items, sections, tables, text boxes, barcodes and images, sets properties, and writes the JavaScript for Source Expressions. It knows the Fornav conventions, such as the ForNAV Template page header and footer for list reports, the address field groups, and the CurrReport function library.

You can use the AI Assistant in two ways:

  • Inside the Designer: from the AI Assistant window, with your own AI provider (Anthropic, OpenAI, Azure OpenAI, or Ollama).
  • From an external AI app: Claude Desktop (or another program that supports the Model Context Protocol, MCP) controls the running Designer through the ForNAV Designer MCP server.

Download and try Reports ForNAV 9.0 Beta version

This is a beta version. Don’t use it for production. Try it on a sandbox or test environment, and keep your current Designer for production work.

Download Reports ForNAV 9.0.0.2916 (beta)

The installer checks for the .NET 10 Desktop Runtime, which the Designer needs.

In addition to the new AI Assistant, the 9.0 ForNAV Designer is a large upgrade of the earlier version. It includes:

  • New platform: the Designer runs on .NET 10 instead of .NET Framework.
  • Improved editing: the font can be modified for all controls on a report in a single operation.
  • Master sections: the content of a master section shows as soon as you set the Master Section property, and the locked-section color shows again in the Report Explorer and on the design surface.
  • Sign-in: expired Business Central tokens are renewed automatically, and the sign-in survives a Designer restart.
  • Business Central 25 and later: the Designer uses OData actions instead of SOAP web services.
  • JavaScript editor: the editor supports the latest JavaScript standards.
  • Property grid: includes descriptions for the Fornav-specific properties, and a search box.
  • Single instance: the Designer runs as one instance, regardless of how it is started.

Set up the AI Assistant in the Designer

The AI Assistant uses your own AI provider account, so you need an API key from one of the supported providers. Ollama runs models locally and does not need a key.

To set up the AI Assistant from inside the Designer:

  1. In the System group on the ribbon, click Settings.
  2. On the AI Assistant tab, in the AI Provider field, select your AI provider (Anthropic, OpenAI, Azure OpenAI, or Ollama).
  3. For Azure OpenAI (required), or for Ollama when it doesn’t run on http://localhost:11434, specify the Endpoint.
  4. Enter the API Key. It is stored encrypted for your Windows user.
  5. In the Model / Deployment Name drop-down field, select a model that your key has access to. Alternatively, type the deployment name for Azure OpenAI.
  6. Click OK.
  7. To open the chat window, in the System group on the ribbon, click AI Assistant.

Settings, AI Assistant tab, set up for Anthropic

The AI Assistant button in the System group on the ribbon

The AI Assistant tab in Settings has three more options:

  • Help improve the AI Assistant by sending anonymous usage data: Select this option to send what you type, the provider and model, and which tools were used, to Fornav. The report content, tool results, and the assistant’s answers are never sent.
  • Allow the AI Assistant to read Business Central data (cloud connections): see the following section Reading Business Central data in this article. This option is, by default, not selected.
  • Clear AI settings: Click to remove the provider, endpoint, model, and key.

The assistant needs a working Business Central connection (Settings > Connection) for anything that reads tables, fields, or reports from the server. Its answers are only as good as the model behind it: a capable model, such as a current Claude model, gives the best results.

Use the Designer from Claude Desktop

The ForNAV Designer MCP server lets an external AI app drive the running Designer. Claude Desktop installs it as an extension; you do not need an API key in the Designer for this, because Claude Desktop uses your Claude account.

To use the AI assistant from Claude Desktop:

  1. Install Reports ForNAV 9.0 with the Designer component. The setup copies the MCP server to Designer MCP Server in the installation folder, next to the extension file FORNAV-Designer.mcpb.
  2. Install the extension in Claude Desktop:
  3. With the regular (Win32) Claude Desktop, select Install the ForNAV Designer extension in Claude Desktop on the last page of the setup. Claude Desktop opens its Install Extension dialog.
  4. With the Microsoft Store version, the setup shows the .mcpb file instead. In Claude Desktop, go to Settings > Extensions > Install Extension… and select it.
  5. Restart Claude Desktop, and check that ForNAV Designer is enabled under Settings > Extensions.
  6. Start the Designer and connect it to Business Central (Settings > Connection).
  7. In Claude Desktop, ask for a report change, for example, “Open the ForNAV Sales Invoice and add a QR code with the document number“.

Things to be aware of:

  • The Designer must be running. The MCP server talks to it on your PC; with no Designer open, every tool reports that.
  • One Designer at a time. The tools act on the open, active report in that Designer.
  • No sign-in prompts. A request from Claude Desktop never opens a Business Central sign-in. If the sign-in has expired, sign in again in the Designer.
  • Claude Code is registered automatically by the setup as well (server name fornav-designer), for developers who work in the terminal.
  • Other MCP-capable apps can start ForNav.Designer.McpServer.exe from the Designer MCP Server folder as a local (stdio) MCP server.

Example: create a new report

Ask: “Create Item List”. The AI Assistant builds a complete list report on a new tab.

What it does:

  1. Opens a new report on its own tab, so the reports you already have open are untouched.
  2. Adds the root data Item (table 27).
  3. Links the page header and footer to the MasterHeader and MasterFooter sections of the ForNAV Template report, and adds the CompanyInformation and ForNAVSetup records they read. The template already has the logo, report title, date, user and page number. A landscape list uses ForNAV Template – Landscape.
  4. Looks for a similar standard ForNAV report to imitate, and for the Item fields that reports use most.
  5. Adds a caption row (bold, repeated on every page) and a line row with fields such as No., Description, Base Unit of Measure, Unit Price, and Inventory, sized to fit between the margins.

The Item List built by the AI Assistant

Preview of the Item List

You can refine the report in the same conversation. For example: “add the Vendor No.“, “make it landscape“, “filter on blocked items“,  or “group by Item Category“.

The assistant doesn’t save the new report. You must save it yourself from the Save menu in the Designer: click Save As, Save as Object on Server, or Merge into existing extension. A custom layout isn’t possible yet, because the report doesn’t exist on the server until you save it as an object.

Example: change an existing report

Start with “Edit the sales invoice“. The assistant finds the report on the server and opens it in the same way that clicking Open Report from Server does: it fetches the active layout and updates it to the current dataset. When several reports match, it takes the one whose name starts with “ForNAV” (in this example, ForNAV Sales Invoice) and tells you which one it chose.

If every section of the report comes from a template report, there’s nothing to change in the report itself. The assistant tells you, and offers to open the template instead. A change there affects every report built on that template.

“Add a QR code with the document number“

The assistant adds a QR code bound to the document number, Header.No, at a free spot in the header. It uses compaction mode Byte and hides the text under the code, as Fornav does for every QR code.

The AI Assistant after adding a QR code with the document number

“Remove the contact name from the address“

The address stays bound to its field group, so the country’s address format still applies. The assistant changes the address text box’s Source Expression so it removes the contact information from the customer address (only when there is a contact).

Header.Bill_toContact ? Header.FieldGroups.Bill_toAddress.replace(Header.Bill_toContact + '\n', '') : Header.FieldGroups.Bill_toAddress

Without the check, an invoice with no contact would lose the line break between the first two address lines.

The AI Assistant after removing the contact from the address

“Add item tracking“

The assistant adds the serial and lot numbers under each invoice line. It nests a data item for the temporary table Tracking Specification (336) under the Line data item, and adds a caption row and a row with the serial no., lot no., package no., quantity and expiration date. The ForNAV Customizable Report Pack fills that table when the report prints, so the report’s AL object doesn’t change.

This needs the ForNAV Customizable Report Pack in Business Central.

The AI Assistant after adding item tracking

VAT or sales tax: how the assistant picks the right report

Many ForNAV document reports come in two variants, such as ForNAV VAT Sales Invoice and ForNAV Tax Sales Invoice. The assistant works out which one fits your environment before it picks or imitates a report.

It asks the Designer for the environment’s tax system. The Designer checks whether table 10000 exists in the connected Business Central environment: that table only exists where US sales tax is used. No report needs to be open for this.

Table 10000 in the environmentTax systemReports the assistant excludes
PresentUS sales taxForNAV VAT …
Not presentVATForNAV Tax …
Not connectedUnknownNone: both variants are offered

The check runs automatically when the assistant searches the built-in catalog of standard ForNAV reports, and when it has to choose between a VAT and a Tax variant of a report you named. You can override this in your request, for example by writing, “show me the sales tax invoice too“.

The AI Assistant answering Get tax system

Reading Business Central data

The assistant can look at real data in Business Central online while it designs, through Microsoft’s Business Central MCP server. For example: “How many lines does a typical sales invoice have?“, “Which countries are our customers in?”, “Is Description 2 ever filled in on sales lines?“. This works in the AI Assistant in the Designer and from Claude Desktop.

The Allow the AI Assistant to read Business Central data (cloud connections) option is off by default, because the results become part of the conversation and are sent to your AI provider.

To allow the assistant to read Business Central data:

  1. In Business Central, open Model Context Protocol (MCP) Server Configurations and make sure there is an active configuration. A read-only one is enough.
  2. In the Designer, open Settings > Connection, edit your cloud connection and enter that configuration’s name in MCP configuration. It is required: the MCP server doesn’t fall back to the configuration marked Default.
  3. In Settings > AI Assistant, select the Allow the AI Assistant to read Business Central data (cloud connections) option.

What to expect:

  • Business Central online only. On-premises and other connections have no Business Central MCP server; the assistant then uses the Designer’s own table and field information, as before.
  • Read-only. The assistant can search tables and API pages and read records, but never create, change, delete, or post anything, whatever the MCP configuration allows.
  • Your own permissions. It signs in with your Designer sign-in and sees only what you can see.
  • Business Central 29 and later add tools to look up a table’s fields and relations and to run small AL queries. In Business Central 28, the assistant reads data through API pages, such as the Customer’s API.

Tips and troubleshooting

Tips for working with the AI Assistant:

  • Name the report and the place.  For example, “In the ForNAV Sales Invoice, add the shipment date under the posting date” works better than “add the shipment date“.
  • One change at a time. Check each result in the Designer, then ask for the next.
  • Preview before you save. The assistant only saves when you ask it to.
  • Ask about scripts. It knows the CurrReport functions, for example, for FIK payment codes, date formulas, and number formatting, and writes the JavaScript for you.
What you seeWhat to do
“No AI provider is configured yet”Set up a provider in Settings > AI Assistant.
“The Designer MCP Server was not found”Reinstall the beta with the Designer component.
A Business Central data message about the MCP configurationEnter the name of an active configuration from that environment in Settings > Connection > MCP configuration.
Claude Desktop says no Designer is runningStart the Designer, and keep only one Designer open.
A sign-in error from Claude DesktopSign in to Business Central again in the Designer (Settings > Connection > Test Connection).
Something else goes wrong in the AI AssistantSend the log %LOCALAPPDATA%\ForNAV\Reports ForNAV\AiChat.log to ForNAV support.

Note that changing the AI settings or the connection restarts the conversation in the AI Assistant window.