Query register virtual table
register_queryQuery 1C registers server-side for aggregated stock balances, period turnovers, and slices grouped by dimensions; supports date ranges and pagination.
Instructions
Server-side analytics on a 1С register — stock balances, period turnovers/sales totals, slices. 1С aggregates by the register dimensions and returns compact pre-summed rows; prefer this over query on raw "*_RecordType" records for totals/by-dimension breakdowns. Use dimensions (comma-separated) to control grouping. Tables: balance/turnovers/balanceAndTurnovers (accumulation), sliceFirst/sliceLast (information), drCrTurnovers/extDimensions/recordsWithExtDimensions (accounting). Dates are ISO 8601. Paginated via top/skip.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection": "<connection>",
"register": "<register>",
"table": "<table>"
},
"name": "register_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max rows to return this page (server-capped; omit for the default) | |
| skip | No | Offset for pagination (default 0) | |
| table | Yes | Virtual table to query | |
| period | No | ISO date — point in time for balance/slice (range tables: taken as range start) | |
| compact | No | Drop 1С "*_Type" annotation companions and @odata noise to save space. Caveat: also removes composite-type discriminators like Value_Type/Ref_Type, so omit it when you need to know which entity a "*_Key" points to. | |
| periodTo | No | ISO date — range end (EndPeriod) for turnovers/accounting tables | |
| register | Yes | Register entity set, e.g. AccumulationRegister_ТоварыНаСкладах | |
| condition | No | Raw OData condition expression on the register records | |
| connection | Yes | Connection name | |
| dimensions | No | Comma-separated dimension names | |
| periodFrom | No | ISO date — range start (StartPeriod) for turnovers/accounting tables | |
| extraDimensions | No | AccountingRegister: ext-dimension condition | |
| accountCondition | No | AccountingRegister: condition on the (main) account, e.g. "Account_Key eq guid'…'" | |
| balancedExtraDimensions | No | drCrTurnovers: ext-dimension condition for the corresponding account | |
| balancedAccountCondition | No | drCrTurnovers: condition on the corresponding/balanced account |