DealFields
Returns data about all deal fields.
Select
The add-in will use the Pipedrive API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the add-in.
- Id supports the '=' operator.
For example, the following query is processed server side:
SELECT * FROM DealFields WHERE Id = 12478
INSERT
Insert can be executed by specifying the Name and IconKey columns. The columns that are not required can be inserted optionally.
For example:
INSERT INTO DealFields (Name, AddVisibleFlag, FieldType) VALUES ('test43', 'false', 'address')
UPDATE
Update can be executed by specifying the Id in the WHERE Clause. The columns that are not read-only can be Updated.
For example:
UPDATE DealFields SET Name = 'test44' WHERE Id = '12500'
DELETE
Delete can be executed by specifying the Id in the WHERE Clause.
For example:
DELETE FROM DealFields WHERE Id = 12500
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Integer | True |
ID of the field. | |
| ActiveFlag | Boolean | True |
Whether the field is available in 'add new' modal or not (both in web and mobile app). The default value is true. | |
| AddTime | Datetime | True |
AddTime. | |
| AddVisibleFlag | Boolean | False |
AddVisibleFlag. | |
| BulkEditAllowed | Boolean | True |
BulkEditAllowed. | |
| DetailsVisibleFlag | Boolean | True |
DetailsVisibleFlag. | |
| EditFlag | Boolean | True |
EditFlag. | |
| FieldType | String | False |
Type of the field. The allowed values are address, date, daterange, double, enum, monetary, org, people, phone, set, text, time, timerange, user, varchar, varchar_auto, visible_to. | |
| FilteringAllowed | Boolean | True |
FilteringAllowed. | |
| ImportantFlag | Boolean | True |
ImportantFlag. | |
| IndexVisibleFlag | Boolean | True |
IndexVisibleFlag. | |
| Key | String | True |
Key. | |
| LastUpdatedByUserId | String | True |
LastUpdatedByUserId. | |
| MandatoryFlag | Boolean | True |
MandatoryFlag. | |
| Name | String | False |
Name of the field. | |
| Options | String | False |
Options. | |
| OrderNr | Integer | True |
OrderNr. | |
| SearchableFlag | Boolean | True |
SearchableFlag. | |
| SortableFlag | Boolean | True |
SortableFlag. | |
| UpdateTime | Datetime | True |
UpdateTime. |