# Pipedrive

Pipedrive is a sales pipeline CRM designed to help small businesses manage leads, track sales activities and close more deals.

For more information about the API, see the [Pipedrive REST API](https://developers.pipedrive.com/Content/api/v1/).

See the [Schema](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#Schema) section for a list of objects available for replication.

## Preparing for authentication

To access your data, you need to authenticate the connection with your account credentials.

Information noteMake sure that the account you use has read access to the tables you want to fetch.

To obtain the API token:

1. Make sure you have the Admin permissions in Pipedrive.

   You need them to ensure Qlik can access and replicate all your data. It is recommend that you [create a separate Pipedrive Admin user for Qlik](http://support.pipedrive.com/hc/en-us/articles/207319685-How-to-add-edit-remove-a-user), but this is not mandatory to use the integration. Creating a dedicated user makes the activities easier to distinguish in logs and audits.

   If you do not want to create a dedicated user, make sure that the credentials you use to connect to Qlik have Admin permissions. If the API token associated with a non-Admin user is used to set up the integration, Qlik may be unable to access and replicate all of your data.

   Users are counted at the account-level in Pipedrive, not the company level. If you want to create a user for Qlik and are concerned about the cost of your Pipedrive subscription, you will not be charged twice.

2. If you created a Pipedrive user for Qlik, log into Pipedrive as the Qlik user. If you did not, log into Pipedrive as an Admin user.

3. Click the user menu (where your avatar is) in the top-right corner of the screen.

4. Click Settings &gt; API.

5. Copy the API token:

   ![Personal API token in the Pipedrive app](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Resources/Images/pipedrive-api-token.png)

### Connecting multiple Pipedrive companies

If you want to connect more than one Pipedrive company, repeat the entire procedure above for every company you want to add. You must create a separate Pipedrive integration for each company.

Our Pipedrive integration uses an API Token to authenticate. Pipedrive API tokens are unique not only at the user level, but the company level as well. This means that a user’s API Token will vary from company to company, even if everything is housed in the same Pipedrive account.

## Creating the connection

For more information, see [Connecting to SaaS applications](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Landing/connecting-web-applications.htm).

1. Fill in the required connection properties.

2. Provide a name for the connection in Connection name.

3. Select Open connection metadata to define metadata for the connection when it has been created.

4. Click Create.

Connection settings

| Setting | Description |
| --- | --- |
| Data gateway | Select a Data Movement gateway if required by your use case.<br><br>Information note<br><br>This field is not available with the Qlik Talend Cloud Starter subscription, as it does not support Data Movement gateway. If you have another subscription tier and do not want to use Data Movement gateway, select None.<br><br>For information on the benefits of Data Movement gateway and use cases that require it, see [Qlik Data Gateway - Data Movement](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/replication-gateway.htm). |
| Start Date | Enter the date, in the format `MM/DD/YYYY`, from which the data must be replicated from your source to your target. |
| API Token | API token. |

## Schema

Information note

Schemas and naming conventions can change from version to version. It is recommended to verify your version before continuing.

Depending on your destination, table and column names may not appear as they are outlined below.

### activities

The `activities` table contains info about recent activities - calls, tasks, lunches, etc. - recorded in your Pipedrive account.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | update\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Recents "Opens in new tab: Pipedrive API method") |

activities table foreign keys

| Join activities with | on |
| --- | --- |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>activities.id = deals.last_activity_id<br>```<br><br>```<br>activities.id = deals.next_activity_id<br>```<br><br>```<br>activities.deal_id = deals.id<br>```<br><br>```<br>activities.org_id = deals.org_id<br>```<br><br>```<br>activities.assigned_to_user_id = deals.creator_user_id<br>```<br><br>```<br>activities.created_by_user_id = deals.creator_user_id<br>```<br><br>```<br>activities.user_id = deals.creator_user_id<br>```<br><br>```<br>activities.assigned_to_user_id = deals.user_id<br>```<br><br>```<br>activities.created_by_user_id = deals.user_id<br>```<br><br>```<br>activities.user_id = deals.user_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>activities.id = files.activity_id<br>```<br><br>```<br>activities.deal_id = files.deal_id<br>```<br><br>```<br>activities.org_id = files.org_id<br>```<br><br>```<br>activities.participants.person_id = files.person_id<br>```<br><br>```<br>activities.person_id = files.person_id<br>```<br><br>```<br>activities.assigned_to_user_id = files.user_id<br>```<br><br>```<br>activities.created_by_user_id = files.user_id<br>```<br><br>```<br>activities.user_id = files.user_id<br>``` |
| [organizations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#organizations) | ```<br>activities.id = organizations.last_activity_id<br>```<br><br>```<br>activities.id = organizations.next_activity_id<br>```<br><br>```<br>activities.org_id = organizations.id<br>``` |
| [persons](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#persons) | ```<br>activities.id = persons.last_activity_id<br>```<br><br>```<br>activities.id = persons.next_activity_id<br>```<br><br>```<br>activities.participants.person_id = persons.id<br>```<br><br>```<br>activities.person_id = persons.id<br>``` |
| [deal_products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deal-products) | ```<br>activities.deal_id = deal_products.deal_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>activities.deal_id = notes.deal_id<br>```<br><br>```<br>activities.org_id = notes.org_id<br>```<br><br>```<br>activities.participants.person_id = notes.person_id<br>```<br><br>```<br>activities.person_id = notes.person_id<br>```<br><br>```<br>activities.assigned_to_user_id = notes.last_update_user_id<br>```<br><br>```<br>activities.created_by_user_id = notes.last_update_user_id<br>```<br><br>```<br>activities.user_id = notes.last_update_user_id<br>```<br><br>```<br>activities.assigned_to_user_id = notes.user_id<br>```<br><br>```<br>activities.created_by_user_id = notes.user_id<br>```<br><br>```<br>activities.user_id = notes.user_id<br>``` |
| [dealflow](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#dealflow) | ```<br>activities.assigned_to_user_id = dealflow.user_id<br>```<br><br>```<br>activities.created_by_user_id = dealflow.user_id<br>```<br><br>```<br>activities.user_id = dealflow.user_id<br>``` |
| [filters](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#filters) | ```<br>activities.assigned_to_user_id = filters.user_id<br>```<br><br>```<br>activities.created_by_user_id = filters.user_id<br>```<br><br>```<br>activities.user_id = filters.user_id<br>``` |
| [users](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#users) | ```<br>activities.assigned_to_user_id = users.id<br>```<br><br>```<br>activities.created_by_user_id = users.id<br>```<br><br>```<br>activities.user_id = users.id<br>``` |

activities table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **assigned\_to\_user\_id**<br><br><br>INTEGER |
| **company\_id**<br><br><br>INTEGER |
| **created\_by\_user\_id**<br><br><br>INTEGER |
| **deal\_dropbox\_bcc**<br><br><br>STRING |
| **deal\_id**<br><br><br>INTEGER |
| **deal\_title**<br><br><br>STRING |
| **done**<br><br><br>BOOLEAN |
| **due\_date**<br><br><br>STRING |
| **due\_time**<br><br><br>STRING |
| **duration**<br><br><br>STRING |
| **gcal\_event\_id**<br><br><br>STRING |
| **google\_calendar\_etag**<br><br><br>STRING |
| **google\_calendar\_id**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **marked\_as\_done\_time**<br><br><br>DATE-TIME |
| **note**<br><br><br>STRING |
| **org\_id**<br><br><br>INTEGER |
| **org\_name**<br><br><br>STRING |
| **owner\_name**<br><br><br>STRING |
| **participants**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>person_id</b>: INTEGER</li><li><b>primary_flag</b>: BOOLEAN</li></ul> |
| **person\_dropbox\_bcc**<br><br><br>STRING |
| **person\_id**<br><br><br>INTEGER |
| **person\_name**<br><br><br>STRING |
| **reference\_id**<br><br><br>INTEGER |
| **reference\_type**<br><br><br>STRING |
| **subject**<br><br><br>STRING |
| **type**<br><br><br>STRING |
| **update\_time**<br><br><br>DATE-TIME |
| **user\_id**<br><br><br>INTEGER |

### activity\_types

The `activity_types` table contains info about the different kinds of activities in your Pipedrive account.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Pipedrive documentation](https://developers.pipedrive.com/Content/api/v1/#!/ActivityTypes)<br><br>[Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/ActivityTypes/get_activityTypes "Opens in new tab: Pipedrive API method") |

activity\_types table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **color**<br><br><br>STRING |
| **icon\_key**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **is\_custom\_flag**<br><br><br>BOOLEAN |
| **key\_string**<br><br><br>STRING |
| **name**<br><br><br>STRING |
| **order\_nr**<br><br><br>INTEGER |
| **update\_time**<br><br><br>DATE-TIME |

### currency

The `currency` table contains info about the currencies listed in your Pipedrive account.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Currencies "Opens in new tab: Pipedrive API method") |

currency table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **code**<br><br><br>STRING |
| **decimal\_points**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **is\_custom\_flag**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **symbol**<br><br><br>STRING |

### deal\_fields

The `deal_fields` table contains info about all deal fields.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | update\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/DealFields#getDealFields "Opens in new tab: Pipedrive API method") |

deal\_fields table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **add\_visible\_flag**<br><br><br>BOOLEAN |
| **bulk\_edit\_allowed**<br><br><br>BOOLEAN |
| **details\_visible\_flag**<br><br><br>BOOLEAN |
| **edit\_flag**<br><br><br>BOOLEAN |
| **field\_type**<br><br><br>STRING |
| **filtering\_allowed**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **important\_flag**<br><br><br>BOOLEAN |
| **index\_visible\_flag**<br><br><br>BOOLEAN |
| **key**<br><br><br>STRING |
| **last\_updated\_by\_user\_id**<br><br><br>INTEGER |
| **mandatory\_flag**<br><br><br>BOOLEAN |
| **name**<br><br><br>STRING |
| **options**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>id</b>: STRING</li><li><b>label</b>: STRING</li></ul> |
| **order\_nr**<br><br><br>INTEGER |
| **searchable\_flag**<br><br><br>BOOLEAN |
| **sortable\_flag**<br><br><br>BOOLEAN |
| **update\_time**<br><br><br>DATE-TIME |

### deal\_products

The `deal_products` table contains info about the products attached to deals.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Pipedrive documentation](https://developers.pipedrive.com/Content/api/v1/#!/Deals)<br><br>[Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Deals/get_deals_id_products "Opens in new tab: Pipedrive API method") |

deal\_products table foreign keys

| Join deal\_products with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>deal_products.deal_id = activities.deal_id<br>``` |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>deal_products.deal_id = deals.id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>deal_products.deal_id = files.deal_id<br>```<br><br>```<br>deal_products.product_id = files.product_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>deal_products.deal_id = notes.deal_id<br>``` |
| [products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#products) | ```<br>deal_products.product_id = products.id<br>``` |

deal\_products table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **comments**<br><br><br>STRING |
| **currency**<br><br><br>STRING |
| **deal\_id**<br><br><br>INTEGER |
| **discount\_percentage**<br><br><br>NUMBER |
| **duration**<br><br><br>NUMBER |
| **enabled\_flag**<br><br><br>BOOLEAN |
| **id**<br><br><br>INTEGER |
| **item\_price**<br><br><br>NUMBER |
| **last\_edit**<br><br><br>DATE-TIME |
| **name**<br><br><br>STRING |
| **order\_nr**<br><br><br>INTEGER |
| **product\_id**<br><br><br>INTEGER |
| **product\_variation\_id**<br><br><br>INTEGER |
| **quantity**<br><br><br>INTEGER |
| **quantity\_formatted**<br><br><br>STRING |
| **sum**<br><br><br>NUMBER |
| **sum\_formatted**<br><br><br>STRING |
| **sum\_no\_discount**<br><br><br>NUMBER |

### dealflow

The `dealflow` table contains info about the updates made to a deal.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | log\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Deals/get_deals_id_flow "Opens in new tab: Pipedrive API method") |

dealflow table foreign keys

| Join dealflow with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>dealflow.user_id = activities.assigned_to_user_id<br>```<br><br>```<br>dealflow.user_id = activities.created_by_user_id<br>```<br><br>```<br>dealflow.user_id = activities.user_id<br>``` |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>dealflow.user_id = deals.creator_user_id<br>```<br><br>```<br>dealflow.user_id = deals.user_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>dealflow.user_id = files.user_id<br>``` |
| [filters](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#filters) | ```<br>dealflow.user_id = filters.user_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>dealflow.user_id = notes.last_update_user_id<br>```<br><br>```<br>dealflow.user_id = notes.user_id<br>``` |
| [users](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#users) | ```<br>dealflow.user_id = users.id<br>``` |

dealflow table schema

| **additional\_data**<br><br><br>STRING |
| --- |
| **change\_source**<br><br><br>STRING |
| **field\_key**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **is\_bulk\_update\_flag**<br><br><br>BOOLEAN |
| **item\_id**<br><br><br>INTEGER |
| **log\_time**<br><br><br>DATE-TIME |
| **new\_value**<br><br><br>STRING |
| **old\_value**<br><br><br>STRING |
| **user\_id**<br><br><br>INTEGER |

### deals

The `deals` table contains info about updates made recently to the deals in your Pipedrive account.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | update\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Recents "Opens in new tab: Pipedrive API method") |

deals table foreign keys

| Join deals with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>deals.last_activity_id = activities.id<br>```<br><br>```<br>deals.next_activity_id = activities.id<br>```<br><br>```<br>deals.id = activities.deal_id<br>```<br><br>```<br>deals.org_id = activities.org_id<br>```<br><br>```<br>deals.creator_user_id = activities.assigned_to_user_id<br>```<br><br>```<br>deals.user_id = activities.assigned_to_user_id<br>```<br><br>```<br>deals.creator_user_id = activities.created_by_user_id<br>```<br><br>```<br>deals.user_id = activities.created_by_user_id<br>```<br><br>```<br>deals.creator_user_id = activities.user_id<br>```<br><br>```<br>deals.user_id = activities.user_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>deals.last_activity_id = files.activity_id<br>```<br><br>```<br>deals.next_activity_id = files.activity_id<br>```<br><br>```<br>deals.id = files.deal_id<br>```<br><br>```<br>deals.org_id = files.org_id<br>```<br><br>```<br>deals.creator_user_id = files.user_id<br>```<br><br>```<br>deals.user_id = files.user_id<br>``` |
| [organizations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#organizations) | ```<br>deals.last_activity_id = organizations.last_activity_id<br>```<br><br>```<br>deals.next_activity_id = organizations.last_activity_id<br>```<br><br>```<br>deals.last_activity_id = organizations.next_activity_id<br>```<br><br>```<br>deals.next_activity_id = organizations.next_activity_id<br>```<br><br>```<br>deals.org_id = organizations.id<br>``` |
| [persons](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#persons) | ```<br>deals.last_activity_id = persons.last_activity_id<br>```<br><br>```<br>deals.next_activity_id = persons.last_activity_id<br>```<br><br>```<br>deals.last_activity_id = persons.next_activity_id<br>```<br><br>```<br>deals.next_activity_id = persons.next_activity_id<br>``` |
| [deal_products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deal-products) | ```<br>deals.id = deal_products.deal_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>deals.id = notes.deal_id<br>```<br><br>```<br>deals.org_id = notes.org_id<br>```<br><br>```<br>deals.creator_user_id = notes.last_update_user_id<br>```<br><br>```<br>deals.user_id = notes.last_update_user_id<br>```<br><br>```<br>deals.creator_user_id = notes.user_id<br>```<br><br>```<br>deals.user_id = notes.user_id<br>``` |
| [pipelines](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#pipelines) | ```<br>deals.pipeline_id = pipelines.id<br>``` |
| [stages](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#stages) | ```<br>deals.pipeline_id = stages.pipeline_id<br>```<br><br>```<br>deals.stage_id = stages.id<br>``` |
| [dealflow](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#dealflow) | ```<br>deals.creator_user_id = dealflow.user_id<br>```<br><br>```<br>deals.user_id = dealflow.user_id<br>``` |
| [filters](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#filters) | ```<br>deals.creator_user_id = filters.user_id<br>```<br><br>```<br>deals.user_id = filters.user_id<br>``` |
| [users](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#users) | ```<br>deals.creator_user_id = users.id<br>```<br><br>```<br>deals.user_id = users.id<br>``` |

deals table schema

| **active**<br><br><br>BOOLEAN |
| --- |
| **activities\_count**<br><br><br>INTEGER |
| **add\_time**<br><br><br>DATE-TIME |
| **cc\_email**<br><br><br>STRING |
| **close\_time**<br><br><br>DATE-TIME |
| **creator\_user\_id**<br><br><br>INTEGER |
| **currency**<br><br><br>STRING |
| **deleted**<br><br><br>BOOLEAN |
| **done\_activities\_count**<br><br><br>INTEGER |
| **email\_messages\_count**<br><br><br>INTEGER |
| **expected\_close\_date**<br><br><br>STRING |
| **files\_count**<br><br><br>INTEGER |
| **first\_won\_time**<br><br>DATE-TIME<br><br>STRING |
| **followers\_count**<br><br><br>INTEGER |
| **formatted\_value**<br><br><br>STRING |
| **formatted\_weighted\_value**<br><br><br>STRING |
| **group\_id**<br><br><br>INTEGER |
| **group\_name**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **last\_activity\_date**<br><br><br>STRING |
| **last\_activity\_id**<br><br><br>INTEGER |
| **last\_incoming\_mail\_time**<br><br><br>DATE-TIME |
| **last\_outgoing\_mail\_time**<br><br><br>DATE-TIME |
| **lost\_reason**<br><br><br>STRING |
| **lost\_time**<br><br><br>DATE-TIME |
| **next\_activity\_date**<br><br><br>STRING |
| **next\_activity\_duration**<br><br><br>STRING |
| **next\_activity\_id**<br><br><br>INTEGER |
| **next\_activity\_note**<br><br><br>STRING |
| **next\_activity\_subject**<br><br><br>STRING |
| **next\_activity\_time**<br><br><br>STRING |
| **next\_activity\_type**<br><br><br>STRING |
| **notes\_count**<br><br><br>INTEGER |
| **org\_hidden**<br><br><br>BOOLEAN |
| **org\_id**<br><br><br>INTEGER |
| **org\_name**<br><br><br>STRING |
| **owner\_name**<br><br><br>STRING |
| **participants\_count**<br><br><br>INTEGER |
| **person\_hidden**<br><br><br>BOOLEAN |
| **person\_id**<br><br><br>INTEGER |
| **person\_name**<br><br><br>STRING |
| **pipeline\_id**<br><br><br>INTEGER |
| **probability**<br><br><br>NUMBER |
| **products\_count**<br><br><br>INTEGER |
| **reference\_activities\_count**<br><br><br>INTEGER |
| **renewal\_type**<br><br><br>STRING |
| **rotten\_time**<br><br><br>DATE-TIME |
| **stage\_change\_time**<br><br><br>DATE-TIME |
| **stage\_id**<br><br><br>INTEGER |
| **stage\_order\_nr**<br><br><br>INTEGER |
| **status**<br><br><br>STRING |
| **title**<br><br><br>STRING |
| **undone\_activities\_count**<br><br><br>INTEGER |
| **update\_time**<br><br><br>DATE-TIME |
| **user\_id**<br><br><br>INTEGER |
| **value**<br><br><br>NUMBER |
| **visible\_to**<br><br><br>STRING |
| **weighted\_value**<br><br><br>NUMBER |
| **won\_time**<br><br><br>DATE-TIME |

### files

The `files` table contains info about the recently updated files in your Pipedrive account.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | update\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Recents "Opens in new tab: Pipedrive API method") |

files table foreign keys

| Join files with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>files.activity_id = activities.id<br>```<br><br>```<br>files.deal_id = activities.deal_id<br>```<br><br>```<br>files.org_id = activities.org_id<br>```<br><br>```<br>files.person_id = activities.participants.person_id<br>```<br><br>```<br>files.person_id = activities.person_id<br>```<br><br>```<br>files.user_id = activities.assigned_to_user_id<br>```<br><br>```<br>files.user_id = activities.created_by_user_id<br>```<br><br>```<br>files.user_id = activities.user_id<br>``` |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>files.activity_id = deals.last_activity_id<br>```<br><br>```<br>files.activity_id = deals.next_activity_id<br>```<br><br>```<br>files.deal_id = deals.id<br>```<br><br>```<br>files.org_id = deals.org_id<br>```<br><br>```<br>files.user_id = deals.creator_user_id<br>```<br><br>```<br>files.user_id = deals.user_id<br>``` |
| [organizations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#organizations) | ```<br>files.activity_id = organizations.last_activity_id<br>```<br><br>```<br>files.activity_id = organizations.next_activity_id<br>```<br><br>```<br>files.org_id = organizations.id<br>``` |
| [persons](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#persons) | ```<br>files.activity_id = persons.last_activity_id<br>```<br><br>```<br>files.activity_id = persons.next_activity_id<br>```<br><br>```<br>files.person_id = persons.id<br>``` |
| [deal_products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deal-products) | ```<br>files.deal_id = deal_products.deal_id<br>```<br><br>```<br>files.product_id = deal_products.product_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>files.deal_id = notes.deal_id<br>```<br><br>```<br>files.note_id = notes.id<br>```<br><br>```<br>files.org_id = notes.org_id<br>```<br><br>```<br>files.person_id = notes.person_id<br>```<br><br>```<br>files.user_id = notes.last_update_user_id<br>```<br><br>```<br>files.user_id = notes.user_id<br>``` |
| [products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#products) | ```<br>files.product_id = products.id<br>``` |
| [dealflow](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#dealflow) | ```<br>files.user_id = dealflow.user_id<br>``` |
| [filters](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#filters) | ```<br>files.user_id = filters.user_id<br>``` |
| [users](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#users) | ```<br>files.user_id = users.id<br>``` |

files table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **activity\_id**<br><br><br>INTEGER |
| **add\_time**<br><br><br>DATE-TIME |
| **cid**<br><br><br>STRING |
| **deal\_id**<br><br><br>INTEGER |
| **deal\_name**<br><br><br>STRING |
| **description**<br><br><br>STRING |
| **email\_message\_id**<br><br><br>INTEGER |
| **file\_name**<br><br><br>STRING |
| **file\_size**<br><br><br>INTEGER |
| **file\_type**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **inline\_flag**<br><br><br>BOOLEAN |
| **log\_id**<br><br><br>INTEGER |
| **mail\_message\_id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **note\_id**<br><br><br>INTEGER |
| **org\_id**<br><br><br>INTEGER |
| **org\_name**<br><br><br>STRING |
| **people\_name**<br><br><br>STRING |
| **person\_id**<br><br><br>INTEGER |
| **person\_name**<br><br><br>STRING |
| **product\_id**<br><br><br>INTEGER |
| **product\_name**<br><br><br>STRING |
| **remote\_id**<br><br><br>STRING |
| **remote\_location**<br><br><br>STRING |
| **s3\_bucket**<br><br><br>STRING |
| **update\_time**<br><br><br>DATE-TIME |
| **url**<br><br><br>STRING |
| **user\_id**<br><br><br>INTEGER |

### filters

The `filters` table contains info about the filters, or data validation conditions, used in your Pipedrive account.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Filters "Opens in new tab: Pipedrive API method") |

filters table foreign keys

| Join filters with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>filters.user_id = activities.assigned_to_user_id<br>```<br><br>```<br>filters.user_id = activities.created_by_user_id<br>```<br><br>```<br>filters.user_id = activities.user_id<br>``` |
| [dealflow](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#dealflow) | ```<br>filters.user_id = dealflow.user_id<br>``` |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>filters.user_id = deals.creator_user_id<br>```<br><br>```<br>filters.user_id = deals.user_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>filters.user_id = files.user_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>filters.user_id = notes.last_update_user_id<br>```<br><br>```<br>filters.user_id = notes.user_id<br>``` |
| [users](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#users) | ```<br>filters.user_id = users.id<br>``` |

filters table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **custom\_view\_id**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **temporary\_flag**<br><br><br>BOOLEAN |
| **type**<br><br><br>STRING |
| **update\_time**<br><br><br>DATE-TIME |
| **user\_id**<br><br><br>INTEGER |
| **visible\_to**<br><br><br>STRING |

### notes

The `notes` table contains info about recent notes in your Pipedrive account. Notes are pieces of textual (HTML-formatted) information that can be attached to [`deals`](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals), [`persons`](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#persons) and [`organizations`](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#organizations).

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | update\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Recents "Opens in new tab: Pipedrive API method") |

notes table foreign keys

| Join notes with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>notes.deal_id = activities.deal_id<br>```<br><br>```<br>notes.org_id = activities.org_id<br>```<br><br>```<br>notes.person_id = activities.participants.person_id<br>```<br><br>```<br>notes.person_id = activities.person_id<br>```<br><br>```<br>notes.last_update_user_id = activities.assigned_to_user_id<br>```<br><br>```<br>notes.user_id = activities.assigned_to_user_id<br>```<br><br>```<br>notes.last_update_user_id = activities.created_by_user_id<br>```<br><br>```<br>notes.user_id = activities.created_by_user_id<br>```<br><br>```<br>notes.last_update_user_id = activities.user_id<br>```<br><br>```<br>notes.user_id = activities.user_id<br>``` |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>notes.deal_id = deals.id<br>```<br><br>```<br>notes.org_id = deals.org_id<br>```<br><br>```<br>notes.last_update_user_id = deals.creator_user_id<br>```<br><br>```<br>notes.user_id = deals.creator_user_id<br>```<br><br>```<br>notes.last_update_user_id = deals.user_id<br>```<br><br>```<br>notes.user_id = deals.user_id<br>``` |
| [deal_products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deal-products) | ```<br>notes.deal_id = deal_products.deal_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>notes.deal_id = files.deal_id<br>```<br><br>```<br>notes.id = files.note_id<br>```<br><br>```<br>notes.org_id = files.org_id<br>```<br><br>```<br>notes.person_id = files.person_id<br>```<br><br>```<br>notes.last_update_user_id = files.user_id<br>```<br><br>```<br>notes.user_id = files.user_id<br>``` |
| [organizations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#organizations) | ```<br>notes.org_id = organizations.id<br>``` |
| [persons](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#persons) | ```<br>notes.person_id = persons.id<br>``` |
| [dealflow](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#dealflow) | ```<br>notes.last_update_user_id = dealflow.user_id<br>```<br><br>```<br>notes.user_id = dealflow.user_id<br>``` |
| [filters](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#filters) | ```<br>notes.last_update_user_id = filters.user_id<br>```<br><br>```<br>notes.user_id = filters.user_id<br>``` |
| [users](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#users) | ```<br>notes.last_update_user_id = users.id<br>```<br><br>```<br>notes.user_id = users.id<br>``` |

notes table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **content**<br><br><br>STRING |
| **deal**<br><br><br>OBJECT<br><br>This is a nested data structure: **title**, STRING. |
| **deal\_id**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **last\_update\_user\_id**<br><br><br>INTEGER |
| **org\_id**<br><br><br>INTEGER |
| **organization**<br><br><br>OBJECT<br><br>This is a nested data structure: **name**, STRING. |
| **person**<br><br><br>OBJECT<br><br>This is a nested data structure: **name**, STRING. |
| **person\_id**<br><br><br>INTEGER |
| **pinned\_to\_deal\_flag**<br><br><br>BOOLEAN |
| **pinned\_to\_organization\_flag**<br><br><br>BOOLEAN |
| **pinned\_to\_person\_flag**<br><br><br>BOOLEAN |
| **update\_time**<br><br><br>DATE-TIME |
| **user**<br><br><br>OBJECT<br><br>This is a nested data structure:<br><br><ul><li><b>email</b>: STRING</li><li><b>icon_url</b>: STRING</li><li><b>is_you</b>: BOOLEAN</li><li><b>name</b>: STRING</li></ul> |
| **user\_id**<br><br><br>INTEGER |

### organizations

The `organizations` table contains info about the recent organizations in your Pipedrive account. Organizations are companies and other types of organizations you are making deals with.

| **Replication Method** |  |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | update\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Recents "Opens in new tab: Pipedrive API method") |

organizations table foreign keys

| Join organizations with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>organizations.last_activity_id = activities.id<br>```<br><br>```<br>organizations.next_activity_id = activities.id<br>```<br><br>```<br>organizations.id = activities.org_id<br>``` |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>organizations.last_activity_id = deals.last_activity_id<br>```<br><br>```<br>organizations.next_activity_id = deals.last_activity_id<br>```<br><br>```<br>organizations.last_activity_id = deals.next_activity_id<br>```<br><br>```<br>organizations.next_activity_id = deals.next_activity_id<br>```<br><br>```<br>organizations.id = deals.org_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>organizations.last_activity_id = files.activity_id<br>```<br><br>```<br>organizations.next_activity_id = files.activity_id<br>```<br><br>```<br>organizations.id = files.org_id<br>``` |
| [persons](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#persons) | ```<br>organizations.last_activity_id = persons.last_activity_id<br>```<br><br>```<br>organizations.next_activity_id = persons.last_activity_id<br>```<br><br>```<br>organizations.last_activity_id = persons.next_activity_id<br>```<br><br>```<br>organizations.next_activity_id = persons.next_activity_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>organizations.id = notes.org_id<br>``` |

organizations table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **activities\_count**<br><br><br>INTEGER |
| **add\_time**<br><br><br>DATE-TIME |
| **address**<br><br><br>STRING |
| **address\_admin\_area\_level\_1**<br><br><br>STRING |
| **address\_admin\_area\_level\_2**<br><br><br>STRING |
| **address\_country**<br><br><br>STRING |
| **address\_formatted\_address**<br><br><br>STRING |
| **address\_locality**<br><br><br>STRING |
| **address\_postal\_code**<br><br><br>STRING |
| **address\_route**<br><br><br>STRING |
| **address\_street\_number**<br><br><br>STRING |
| **address\_sublocality**<br><br><br>STRING |
| **address\_subpremise**<br><br><br>STRING |
| **category\_id**<br><br><br>INTEGER |
| **cc\_email**<br><br><br>STRING |
| **closed\_deals\_count**<br><br><br>INTEGER |
| **company\_id**<br><br><br>INTEGER |
| **country\_code**<br><br><br>STRING |
| **done\_activities\_count**<br><br><br>INTEGER |
| **email\_messages\_count**<br><br><br>INTEGER |
| **files\_count**<br><br><br>INTEGER |
| **first\_char**<br><br><br>STRING |
| **followers\_count**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **last\_activity\_date**<br><br><br>STRING |
| **last\_activity\_id**<br><br><br>INTEGER |
| **lost\_deals\_count**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **next\_activity\_date**<br><br><br>STRING |
| **next\_activity\_id**<br><br><br>INTEGER |
| **next\_activity\_time**<br><br><br>STRING |
| **notes\_count**<br><br><br>INTEGER |
| **open\_deals\_count**<br><br><br>INTEGER |
| **owner\_id**<br><br><br>INTEGER |
| **owner\_name**<br><br><br>STRING |
| **people\_count**<br><br><br>INTEGER |
| **picture\_id**<br><br><br>INTEGER |
| **reference\_activities\_count**<br><br><br>INTEGER |
| **related\_closed\_deals\_count**<br><br><br>INTEGER |
| **related\_lost\_deals\_count**<br><br><br>INTEGER |
| **related\_open\_deals\_count**<br><br><br>INTEGER |
| **related\_won\_deals\_count**<br><br><br>INTEGER |
| **timeline\_last\_activity\_time**<br><br><br>DATE-TIME |
| **timeline\_last\_activity\_time\_by\_owner**<br><br><br>DATE-TIME |
| **undone\_activities\_count**<br><br><br>INTEGER |
| **update\_time**<br><br><br>DATE-TIME |
| **visible\_to**<br><br><br>STRING |
| **won\_deals\_count**<br><br><br>INTEGER |

### persons

The `persons` table contains info about the recent persons in your Pipedrive account. In Pipedrive, a person represents a contact, or a customer you’re doing a deal with.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | update\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Recents "Opens in new tab: Pipedrive API method") |

persons table foreign keys

| Join persons with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>persons.last_activity_id = activities.id<br>```<br><br>```<br>persons.next_activity_id = activities.id<br>```<br><br>```<br>persons.id = activities.participants.person_id<br>```<br><br>```<br>persons.id = activities.person_id<br>``` |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>persons.last_activity_id = deals.last_activity_id<br>```<br><br>```<br>persons.next_activity_id = deals.last_activity_id<br>```<br><br>```<br>persons.last_activity_id = deals.next_activity_id<br>```<br><br>```<br>persons.next_activity_id = deals.next_activity_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>persons.last_activity_id = files.activity_id<br>```<br><br>```<br>persons.next_activity_id = files.activity_id<br>```<br><br>```<br>persons.id = files.person_id<br>``` |
| [organizations](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#organizations) | ```<br>persons.last_activity_id = organizations.last_activity_id<br>```<br><br>```<br>persons.next_activity_id = organizations.last_activity_id<br>```<br><br>```<br>persons.last_activity_id = organizations.next_activity_id<br>```<br><br>```<br>persons.next_activity_id = organizations.next_activity_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>persons.id = notes.person_id<br>``` |

persons table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **activities\_count**<br><br><br>INTEGER |
| **add\_time**<br><br><br>DATE-TIME |
| **cc\_email**<br><br><br>STRING |
| **closed\_deals\_count**<br><br><br>INTEGER |
| **company\_id**<br><br><br>INTEGER |
| **done\_activities\_count**<br><br><br>INTEGER |
| **email**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>label</b>: STRING</li><li><b>primary</b>: BOOLEAN</li><li><b>value</b>: STRING</li></ul> |
| **email\_messages\_count**<br><br><br>INTEGER |
| **files\_count**<br><br><br>INTEGER |
| **first\_char**<br><br><br>STRING |
| **first\_name**<br><br><br>STRING |
| **followers\_count**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **last\_activity\_date**<br><br><br>STRING |
| **last\_activity\_id**<br><br><br>INTEGER |
| **last\_incoming\_mail\_time**<br><br><br>DATE-TIME |
| **last\_name**<br><br><br>STRING |
| **last\_outgoing\_mail\_time**<br><br><br>DATE-TIME |
| **lost\_deals\_count**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **next\_activity\_date**<br><br><br>STRING |
| **next\_activity\_id**<br><br><br>INTEGER |
| **next\_activity\_time**<br><br><br>STRING |
| **notes\_count**<br><br><br>INTEGER |
| **open\_deals\_count**<br><br><br>INTEGER |
| **org\_id**<br><br><br>INTEGER |
| **org\_name**<br><br><br>STRING |
| **owner\_id**<br><br><br>INTEGER |
| **owner\_name**<br><br><br>STRING |
| **participant\_closed\_deals\_count**<br><br><br>INTEGER |
| **participant\_open\_deals\_count**<br><br><br>INTEGER |
| **phone**<br><br><br>ARRAY<br><br>This is a nested data structure:<br><br><ul><li><b>label</b>: STRING</li><li><b>primary</b>: BOOLEAN</li><li><b>value</b>: STRING</li></ul> |
| **picture\_id**<br><br><br>INTEGER |
| **reference\_activities\_count**<br><br><br>INTEGER |
| **related\_closed\_deals\_count**<br><br><br>INTEGER |
| **related\_lost\_deals\_count**<br><br><br>INTEGER |
| **related\_open\_deals\_count**<br><br><br>INTEGER |
| **related\_won\_deals\_count**<br><br><br>INTEGER |
| **timeline\_last\_activity\_time**<br><br><br>DATE-TIME |
| **timeline\_last\_activity\_time\_by\_owner**<br><br><br>DATE-TIME |
| **undone\_activities\_count**<br><br><br>INTEGER |
| **update\_time**<br><br><br>DATE-TIME |
| **visible\_to**<br><br><br>STRING |
| **won\_deals\_count**<br><br><br>INTEGER |

### pipelines

The `pipelines` table contains info about the pipelines in your Pipedrive account.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Pipelines "Opens in new tab: Pipedrive API method") |

pipelines table foreign keys

| Join pipelines with | on |
| --- | --- |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>pipelines.id = deals.pipeline_id<br>``` |
| [stages](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#stages) | ```<br>pipelines.id = stages.pipeline_id<br>``` |

pipelines table schema

| **active**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **order\_nr**<br><br><br>INTEGER |
| **selected**<br><br><br>BOOLEAN |
| **update\_time**<br><br><br>DATE-TIME |
| **url\_title**<br><br><br>STRING |

### products

The `products` table contains info about the recent products in your Pipedrive account.

| **Replication Method** | CDC |
| --- | --- |
| **Primary Key** | id |
| **Replication Key** | update\_time |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Recents "Opens in new tab: Pipedrive API method") |

products table foreign keys

| Join products with | on |
| --- | --- |
| [deal_products](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deal-products) | ```<br>products.id = deal_products.product_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>products.id = files.product_id<br>``` |

products table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **code**<br><br><br>STRING |
| **files\_count**<br><br><br>INTEGER |
| **first\_char**<br><br><br>STRING |
| **followers\_count**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **owner\_id**<br><br><br>INTEGER |
| **owner\_name**<br><br><br>STRING |
| **prices**<br><br><br>OBJECT, ARRAY<br><br>This is a nested data structure: **USD**, OBJECT, which is also a nested data structure.<br><br><ul><li><b>cost</b>: NUMBER</li><li><b>currency</b>: STRING</li><li><b>id</b>: INTEGER</li><li><b>overhead_cost</b>: NUMBER</li><li><b>price</b>: INTEGER</li><li><b>product_id</b>: INTEGER</li></ul> |
| **selectable**<br><br><br>BOOLEAN |
| **tax**<br><br><br>INTEGER |
| **unit**<br><br><br>STRING |
| **update\_time**<br><br><br>DATE-TIME |
| **visible\_to**<br><br><br>STRING |

### stages

The `stages` table contains info about the pipeline stages in your Pipedrive account.

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Stages/get_stages "Opens in new tab: Pipedrive API method") |

stages table foreign keys

| Join stages with | on |
| --- | --- |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>stages.pipeline_id = deals.pipeline_id<br>```<br><br>```<br>stages.id = deals.stage_id<br>``` |
| [pipelines](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#pipelines) | ```<br>stages.pipeline_id = pipelines.id<br>``` |

stages table schema

| **active\_flag**<br><br><br>BOOLEAN |
| --- |
| **add\_time**<br><br><br>DATE-TIME |
| **deal\_probability**<br><br><br>INTEGER |
| **id**<br><br><br>INTEGER |
| **name**<br><br><br>STRING |
| **order\_nr**<br><br><br>INTEGER |
| **pipeline\_id**<br><br><br>INTEGER |
| **pipeline\_name**<br><br><br>STRING |
| **rotten\_days**<br><br><br>INTEGER |
| **rotten\_flag**<br><br><br>BOOLEAN |
| **update\_time**<br><br><br>DATE-TIME |

### users

The `users` table contains info about the users associated with your Pipedrive account. **Note**: This table contains info about the people with access to your Pipedrive account - they should not be confused with [`persons`](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#persons).

| **Replication Method** | Full Table |
| --- | --- |
| **Primary Key** | id |
| **Useful links** | [Pipedrive API method](https://developers.pipedrive.com/Content/api/v1/#!/Recents "Opens in new tab: Pipedrive API method") |

users table foreign keys

| Join users with | on |
| --- | --- |
| [activities](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#activities) | ```<br>users.id = activities.assigned_to_user_id<br>```<br><br>```<br>users.id = activities.created_by_user_id<br>```<br><br>```<br>users.id = activities.user_id<br>``` |
| [dealflow](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#dealflow) | ```<br>users.id = dealflow.user_id<br>``` |
| [deals](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#deals) | ```<br>users.id = deals.creator_user_id<br>```<br><br>```<br>users.id = deals.user_id<br>``` |
| [files](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#files) | ```<br>users.id = files.user_id<br>``` |
| [filters](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#filters) | ```<br>users.id = filters.user_id<br>``` |
| [notes](https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/WebApplications/Connecting-Pipedrive.htm#notes) | ```<br>users.id = notes.last_update_user_id<br>```<br><br>```<br>users.id = notes.user_id<br>``` |

users table schema

| **activated**<br><br><br>BOOLEAN |
| --- |
| **active\_flag**<br><br><br>BOOLEAN |
| **created**<br><br><br>DATE-TIME |
| **default\_currency**<br><br><br>STRING |
| **email**<br><br><br>STRING |
| **has\_created\_company**<br><br><br>BOOLEAN |
| **icon\_url**<br><br><br>STRING |
| **id**<br><br><br>INTEGER |
| **is\_admin**<br><br><br>INTEGER |
| **is\_you**<br><br><br>BOOLEAN |
| **lang**<br><br><br>INTEGER |
| **last\_login**<br><br>DATE-TIME<br><br>STRING |
| **locale**<br><br><br>STRING |
| **modified**<br><br><br>DATE-TIME |
| **name**<br><br><br>STRING |
| **phone**<br><br><br>STRING |
| **role\_id**<br><br><br>INTEGER |
| **signup\_flow\_variation**<br><br><br>STRING |
| **timezone\_name**<br><br><br>STRING |
| **timezone\_offset**<br><br><br>STRING |