get_top_items
Identify best-selling products by sales amount, quantity, or gross profit within a date range. Use these results to prioritize high-performing items.
Instructions
Top selling items by sales amount or quantity — uses SMLSVC POST. Aggregates by ItemCode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Default 10 | |
| sortBy | No | NetSalesAmountLC | QuantityInInventoryUoM | GrossProfitLC | |
| toDate | No | ||
| fromDate | No |