# CrmDeals_LinkedContactsIdsById
Get a deal
Retrieve the full details of a single deal by its identifier, including its attributes, pipeline stage, linked contacts, and linked companies. Returns a 404 error if the deal does not exist.
- Catalog: `Brevo`
- Schema: `Deals`
This is a read-only table function. The Brevo API may not support changing the data or the Invantive UniversalSQL driver for Brevo does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Brevo API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `CrmDeals_LinkedContactsIdsById`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `id` | `` | ☑ | | |
## Columns of Table Function
The columns of the table function `CrmDeals_LinkedContactsIdsById` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `amount` | `decimal` | Amount | ☐ | |
| `close_date` | `datetime` | Close Date | ☐ | |
| `closed_lost_reason` | `varchar2` | Closed Lost Reason | ☐ | |
| `closed_won_reason` | `varchar2` | Closed Won Reason | ☐ | |
| `created_at` | `datetime` | Created At | ☐ | |
| `deal_description` | `varchar2` | Deal Description | ☐ | |
| `deal_name` | `varchar2` | Deal Name | ☐ | |
| `deal_owner` | `varchar2` | Deal Owner | ☐ | |
| `deal_stage` | `varchar2` | Deal stage | ☐ | |
| `id` | `varchar2` | ID | ☐ | Unique deal id |
| `last_activity_date` | `datetime` | Last Activity Date | ☐ | |
| `last_updated_date` | `datetime` | Last Updated Date | ☐ | |
| `lost_reason` | `varchar2` | Lost reason | ☐ | |
| `number_of_activities` | `decimal` | Number Of Activities | ☐ | |
| `number_of_contacts` | `decimal` | Number Of Contacts | ☐ | |
| `owner_assign_date` | `datetime` | Owner Assign Date | ☐ | |
| `pipeline` | `varchar2` | Pipeline | ☐ | |
| `stage_updated_at` | `datetime` | Stage Updated At | ☐ | |
| `TEXT` | `int64` | Text | ☐ | |