List Deals
list_dealsList the Deals you can see in this Workspace, one page at a time. Use it to filter by open or closed, stage, owner or expected close date, or to sort; use search to find one by name, and get_deal for its Contacts. Returns rows with stage, amount and Company, plus the total. Needs the Deals module: without it, PRECONDITION_FAILED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Matches the Deal's or its Company's name. Empty returns every Deal you can see. | |
| dir | No | Sort direction. | asc |
| page | No | Page number, from 1. | |
| sort | No | One of name, company, stage, amount, expectedCloseDate, createdAt, owner or lastActivity. Empty or unknown sorts newest first. | |
| owner | No | A user id or "all". | all |
| stage | No | DEMO_BOOKED, QUALIFIED_TO_BUY, UNQUALIFIED_TO_BUY, DECISION_MAKER_BOUGHT_IN, CONTRACT_SENT, CLOSED_WON, CLOSED_LOST or "all". | all |
| status | No | "open", "closed" or "all". A stage filter overrides it. | all |
| closing | No | Expected close date: overdue, this-month, next-month, later, none or "all". | all |
| pageSize | No | Rows per page, up to 100. |