@habitusnet/bc365 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@habitusnet/bc365",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Smart onboarding CLI and MCP config manager for Business Central",
5
5
  "type": "module",
6
6
  "bin": {
@@ -78,6 +78,15 @@ Always call `get_schema` first when the user asks about a field you haven't seen
78
78
  mcp__bc-data__list_items(entity="generalLedgerEntries", filter="postingDate gt 2024-01-01", orderby="postingDate desc", top=200)
79
79
  ```
80
80
 
81
+ ### Expand sub-resources (line items, dimensions)
82
+ BC order/invoice headers do not include lines by default. Use `expand` to include them:
83
+ ```
84
+ mcp__bc-data__list_items(entity="salesOrders", filter="number eq 'SO-0001'", expand="salesOrderLines")
85
+ mcp__bc-data__list_items(entity="purchaseOrders", filter="number eq 'PO-0001'", expand="purchaseOrderLines")
86
+ mcp__bc-data__list_items(entity="salesInvoices", expand="salesInvoiceLines")
87
+ ```
88
+ Without `expand`, line items are absent from the response — this is the most common reason users think the data is incomplete.
89
+
81
90
  ### Paginate large result sets
82
91
  If the response contains `@odata.nextLink`, call `list_items` again with a `skip` offset:
83
92
  ```