Working with Data and Business Objects
Reading, writing, documents, files, and bulk moves
Once an agent understands the model, it can operate on it. ERP.net is not just tables — it has documents with lifecycles, enterprise context, printouts, and attachments. Operator's tools cover all of it.
Reading data
Queries run against the ERP.net Domain API with the standard query options: filter, select, expand, ordering, paging. Results come back with:
- DisplayText — the human-readable representation of every record, so answers read like sentences, not GUIDs.
- Expanded references — related records resolved to names instead of raw identifiers.
- Links — a direct link to each record in the ERP.net Web Client, plus a link that opens the whole filtered result set there.
Results are paged (small pages by default) so a broad question does not pull thousands of rows into an AI conversation. Ask for a count or a summary when you want the whole picture.
Example "List the 10 largest open sales orders for Q3, with customer names." The agent filters on document date and state, expands the customer reference, and returns a table where each order number links into the Web Client.
Summaries and totals
When the answer is a number rather than a list — a count, a total, a breakdown per customer or per month — the agent asks ERP.net to do the grouping and let the server return one row per group. This is a separate operation from reading records, and it matters for two reasons: the totals cover every matching record (not just the first page), and a single question costs one call instead of pulling thousands of rows into the conversation.
What can be summarised:
- Group by a field, by a related record (product, customer, the customer of a sales order), or by a time interval (year, month, exact day).
- Count rows, sum amounts and quantities, take the smallest or largest value, or count distinct values.
- Filter first, then summarise — "released orders only", "delivery date after 1 January".
Two things to keep in mind when reading a summary:
- Amounts and quantities are grouped by their measure. A total in two currencies comes back as two lines, one per currency; quantities come back per measurement unit. They are never silently added together.
- Summaries come back unordered. For a "top 5 customers by revenue" answer, the agent retrieves all the groups and ranks them itself before answering.
Example "What did we sell per customer last quarter, and what is the total?" The agent groups sales lines by the customer of their order, filters on the quarter, sums the line amounts, and returns one row per customer with names resolved — plus the overall total per currency.
Creating and updating records
Create, update, and delete are available after the agent has read the update instructions. They apply the ERP.net conventions automatically:
- References are set as proper entity bindings, not loose text.
- Multi-language fields are written per language.
- Dates and identifiers follow the Domain API's exact formats.
Deletes always pause for your confirmation. Creates and updates run directly, and the agent reports exactly what it changed, with a link to the record. If ERP.net rejects a change — a validation rule, a missing required field, a permission problem — the server's own message is surfaced to you verbatim rather than being reworded into something vague.
Business documents
Documents are more than records. Operator supports:
| Operation | What it does |
|---|---|
| Find document types | Locate the right document type for an entity before creating a document |
| Change state | Move a document forward through New → Planned → Firm Planned → Released → Completed → Closed (intermediate states may be skipped) |
| Void | Permanently cancel a document, with a reason, optionally cascading to sub-documents |
| Printout | Generate the document's report (PDF by default) and hand it to you as a file |
| Enterprise context | Read, list, and set the current enterprise company and location — many document operations require it |
Voiding is irreversible, so it always asks first. Changing state and setting enterprise context are shown clearly in the conversation so you can see what the agent did.
Example "Release sales order 000123 and send me the PDF." The agent locates the order, changes its state to Released, generates the default printout, and attaches the PDF to the conversation.
Files attached to ERP.net objects
Operator works with the standard ERP.net object-file model:
- List files attached to any object.
- Read a specific file. PDF, Word, Excel, PowerPoint, images and text files are read by the AI just like a file you upload in the chat.
- Attach a file you uploaded in the conversation to a record — an invoice scan to a purchase order, a signed contract to a customer.
- Create a new file from what the agent writes — a report, list or table as Markdown, text, CSV, Word (.docx) or Excel (.xlsx) — on a record or in a folder. For big jobs the agent creates the file once and adds each next part to it.
- Find files anywhere in the instance by name, type, date, who added them, or folder — you don't need to know which record they sit on.
- Browse and search folders — see what's inside a folder, or find a folder by name together with its full path.
- Search inside a file — find text in a Word (.docx), Excel (.xlsx) or Markdown (.md) file, with where it appears (paragraph, heading or cell).
- Edit a file — targeted changes saved back to the same file: replace text in Word or Markdown (formatting is kept), rewrite a Markdown section, set many Excel cells or add rows in one go. Only .docx, .xlsx and .md can be edited.
- Delete a file from a record.
Editing and deleting always ask for your approval first.
"Find the signed contract for Acme from last month."
The agent searches files by name and date, tells you which customer record it is attached to, and can open it.
"What's in the 2026 Projects folder?"
The agent finds the folder and lists its subfolders, the records filed there and its files.
"Open Projects / 2026 / Acme / Offer.xlsx and summarise it."
The agent follows the folder path straight to the file attached to the Acme folder and reads it.
"In the offer spreadsheet for Acme, change the price in cell C7 to 120."
The agent finds the file, shows you the change for approval and saves it to the same file.
"Match the products on this purchase invoice with our goods and save the report as an Excel file on the invoice."
The agent creates the Excel file on the invoice with the first rows, then adds the remaining rows to the same file.
"Summarize the support methodology document attached to our company."
The agent finds the document on the company record, reads it and answers from its content.
Import and export
For bulk work, Operator can export data out of an entity and import structured data back in, including nested child rows (a document with its lines). Import and export are gated behind their instructions tool because the payload rules matter — read Watch and act for how to enable them per agent.
Safety model in one paragraph
Every operation runs as you (see Security, Identity, and Permissions). ERP.net enforces its own permissions, Operator adds Permission Policies on top, destructive operations pause for explicit confirmation, and every ERP.net call an agent makes can be inspected afterwards in the API logs.