# Insightly

### Snapshot

| Features                        | Details                                          |
| ------------------------------- | ------------------------------------------------ |
| Release Status                  | Released                                         |
| Source API Version              | 2.0                                              |
| Table Selection                 | Yes                                              |
| Column Selection                | Yes                                              |
| Edit Integration                | Yes                                              |
| Replication Type Selection      | No                                               |
| Authentication Parameters       | Insightly api key                                |
| Replication Type                | <p>Full Replication<br>Key based replication</p> |
| Replication Key                 | <p>NA<br>lastRunDate</p>                         |
| Suggested Replication Frequency | 24 hrs                                           |

| Tables/APIs Supported |                     |
| --------------------- | ------------------- |
| ActivitySets          | Notes               |
| Organisations         | Pipelines           |
| PipelinesStage        | Projects            |
| Relationships         | TaskCategories      |
| Tasks                 | TeamMembers         |
| Teams                 | Users               |
| Contacts              | Follows             |
| Leads                 | LeadStatuses        |
| CustomObjects         | CustomFields        |
| ContactEvents         | ContactsTasks       |
| ContactsLinks         | ContactNotes        |
| NotesLinks            | OrganisationsEvents |
| OrganisationLinks     | OrganisationsNotes  |
| OrganisationsTasks    | TaskComments        |
| TaskLinks             | LeadsEvents         |
| LeadLinks             | LeadNotes           |
| LeadTasks             | CustomObjectRecords |
| Emails                | EmailLinks          |
| Events                | EventLinks          |
| Milestones            | ProjectEvents       |
| ProjectLinks          | ProjectMilestones   |
| ProjectNotes          | ProjectTasks        |

ProjectCategories

### Integrate Insightly with Daton

1. Signin to Daton
2. Select Insightly from Integrations page
3. Provide Integration Name Replication Frequency and History. Integration name would be used in creating tables for the integration and cannot be changed later
4. Provide your Insightly api key to authorize Daton to periodically extract data from Insightly.
5. Post successful authentication you will be prompted to choose from the list of available tables
6. Then select all required fields for each table
7. Submit the integration.

### Workflow

1. Integrations would be in Pending state initially and will be moved to Active state as soon as the first job loads data successfully on to the configured warehouse
2. Users would be able to edit/pause/re-activate/delete integration anytime
3. Users can view job status and process logs from the integration details page by clicking on the integration name from the active list

### Insightly Data

**Opportunities**

Purpose: Simple object graphs (excluding LINKS, etc.) are returned if "brief=true" is used in the query string.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Opportunities/GetEntities>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                      | Target Datatype |
| ------------------------- | --------------- |
| events                    | RECORD          |
| links                     | RECORD          |
| notes                     | RECORD          |
| tasks                     | RECORD          |
| historyStates             | RECORD          |
| opportunity\_id           | NUMERIC         |
| opportunity\_name         | STRING          |
| opportunity\_details      | STRING          |
| opportunity\_state        | STRING          |
| responsible\_user\_id     | NUMERIC         |
| category\_id              | STRING          |
| image\_url                | STRING          |
| bid\_currency             | STRING          |
| bid\_amount               | NUMERIC         |
| bid\_type                 | STRING          |
| bid\_duration             | STRING          |
| actual\_close\_date       | STRING          |
| date\_creatd\_utc         | STRING          |
| date\_updated\_utc        | STRING          |
| opportunity\_value        | NUMERIC         |
| probability               | NUMERIC         |
| forecast\_close\_date     | STRING          |
| onwer\_user\_id           | NUMERIC         |
| visible\_to               | STRING          |
| visible\_team\_id         | STRING          |
| last\_activity\_date\_utc | STRING          |
| next\_activity\_date\_utc | STRING          |
| pipeline\_id              | NUMERIC         |
| stage\_id                 | NUMERIC         |
| created\_user\_id         | NUMERIC         |
| organisation\_id          | NUMERIC         |
| customfields              | RECORD          |
| tags                      | RECORD          |

**ActivitySets**

Purpose: Returns all activitySets.

Source API Documentation  h<https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/ActivitySets/GetActivitySets>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name               | Target Datatype |
| ------------------ | --------------- |
| activityset\_id    | NUMERIC         |
| name               | RECORD          |
| for\_contacts      | BOOLEAN         |
| for\_organisations | BOOLEAN         |
| for\_opportunities | BOOLEAN         |
| for\_projects      | BOOLEAN         |
| for\_leads         | BOOLEAN         |
| owner\_user\_id    | NUMERIC         |
| activities         | RECORD          |

**Notes**

Purpose: Returns all notes.

Source-Api documentation: <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Notes/GetEntities>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name               | Target Datatype |
| ------------------ | --------------- |
| links              | RECORD          |
| note\_id           | NUMERIC         |
| title              | STRING          |
| body               | STRING          |
| date\_created\_utc | TIMESTAMP       |
| date\_updated\_utc | TIMESTAMP       |
| owner\_user\_id    | NUMERIC         |
| visible\_to        | STRING          |
| visible\_team\_id  | STRING          |

**Organisations**

Purpose: Returns all organizations

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Organisations/GetEntities>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                       | Target Datatype |
| -------------------------- | --------------- |
| events                     | RECORD          |
| links                      | RECORD          |
| notes                      | RECORD          |
| tasks                      | RECORD          |
| organisation\_id           | NUMERIC         |
| organisation\_name         | STRING          |
| background                 | STRING          |
| image\_url                 | STRING          |
| owner\_user\_id            | NUMERIC         |
| visible\_to                | STRING          |
| visible\_team\_id          | STRING          |
| date\_created\_utc         | TIMESTAMP       |
| date\_updated\_utc         | TIMESTAMP       |
| last\_activity\_date\_utc  | TIMESTAMP       |
| next\_activity\_date\_utc  | TIMESTAMP       |
| created\_user\_id          | NUMERIC         |
| phone                      | STRING          |
| phone\_fax                 | STRING          |
| website                    | STRING          |
| address\_billing\_street   | STRING          |
| address\_billing\_city     | STRING          |
| address\_billing\_state    | STRING          |
| address\_billing\_country  | STRING          |
| address\_billing\_postcode | STRING          |
| address\_ship\_street      | STRING          |
| address\_ship\_city        | STRING          |
| address\_ship\_state       | STRING          |
| address\_ship\_postcode    | STRING          |
| address\_ship\_country     | STRING          |
| social\_linkedin           | STRING          |
| social\_facebook           | STRING          |
| social\_twitter            | STRING          |
| email\_domain              | STRING          |
| customfields               | RECORD          |
| tags                       | RECORD          |
| dates                      | RECORD          |
| emaildomains               | RECORD          |

**Pipelines**

Purpose: This read only endpoint returns a list of pipelines that have been set up for the Insightly instance. Pipelines can be defined for both projects and opportunities, and are used to track the progression of projects and opportunities. To create and update pipelines, you'll need to go to the web app (API access is read-only).

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Pipelines/GetPipelines>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name             | Target Datatype |
| ---------------- | --------------- |
| pipeline\_id     | NUMERIC         |
| pipeline\_name   | STRING          |
| for\_opportunies | BOOLEAN         |
| for\_projects    | BOOLEAN         |
| owner\_user\_id  | NUMERIC         |

**PipelineStages**

Purpose: Pipeline stages are used to indicate where a project or opportunity is in terms of its progression. For example, stage 1 for the sales pipeline might be "initial contact", while stage 4 might be "generating quote". The API for pipeline stages is read only, so to create or update pipeline stages, you'll need to use the web app to do so.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/PipelineStages/GetPipelineStages>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name            | Target Datatype |
| --------------- | --------------- |
| stage\_id       | NUMERIC         |
| pipeline\_id    | NUMERIC         |
| stage\_name     | STRING          |
| stage\_order    | NUMERIC         |
| activityset\_id | STRING          |
| owner\_user\_id | NUMERIC         |

**Projects**

Purpose: Returns a list of Projects.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Projects/GetEntities>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                      | Target Datatype |
| ------------------------- | --------------- |
| events                    | RECORD          |
| links                     | RECORD          |
| milestones                | RECORD          |
| notes                     | RECORD          |
| tasks                     | RECORD          |
| project\_id               | NUMERIC         |
| project\_name             | STRING          |
| status                    | STRING          |
| project\_details          | STRING          |
| started\_date             | TIMESTAMP       |
| completed\_date           | TIMESTAMP       |
| opportunity\_id           | STRING          |
| category\_id              | STRING          |
| pipeline\_id              | NUMERIC         |
| stage\_id                 | NUMERIC         |
| img\_url                  | STRING          |
| visible\_to               | STRING          |
| owner\_user\_id           | NUMERIC         |
| date\_created\_utc        | TIMESTAMP       |
| date\_updated\_utc        | TIMESTAMP       |
| last\_activity\_date\_utc | TIMESTAMP       |
| next\_activity\_date\_utc | TIMESTAMP       |
| created\_user\_id         | NUMERIC         |
| responsible\_user\_id     | NUMERIC         |
| visible\_team\_id         | STRING          |
| custom\_fields            | RECORD          |
| tags                      | RECORD          |

**Relationships**

Purpose: Relationships enable users to define how one Insightly object is related to another. For example: contact A is a customer of contact B. The API only supports read access to relationships, to create or update relationships, you'll need to do so via the web app.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Relationships/GetRelationships>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name              | Target Datatype |
| ----------------- | --------------- |
| relationship\_id  | NUMERIC         |
| forward\_title    | STRING          |
| forward           | STRING          |
| reverse\_title    | STRING          |
| reverse           | STRING          |
| for\_contacts     | BOOLEAN         |
| for\_organisation | BOOLEAN         |

**TaskCategories**

Purpose: This read only endpoint returns a list of the task categories set up for the Insightly instance.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/TaskCategories/GetTaskCategories>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name              | Target Datatype |
| ----------------- | --------------- |
| category\_id      | NUMERIC         |
| category\_name    | STRING          |
| active            | BOOLEAN         |
| background\_color | STRING          |

**Tasks**

Purpose: Returns a list of the task set up for the Insightly instance.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Tasks/GetEntities>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                   | Target Datatype |
| ---------------------- | --------------- |
| comments               | RECORD          |
| links                  | RECORD          |
| task\_id               | NUMERIC         |
| title                  | STRING          |
| category\_id           | NUMERIC         |
| due\_date              | TIMESTAMP       |
| completed\_date\_utc   | TIMESTAMP       |
| completed              | BOOLEAN         |
| details                | STRING          |
| status                 | STRING          |
| priority               | NUMERIC         |
| percent\_complete      | NUMERIC         |
| start\_date            | TIMESTAMP       |
| milestone\_id          | STRING          |
| pubilcly\_visible      | BOOLEAN         |
| responsible\_user\_id  | NUMERIC         |
| owner\_user\_id        | NUMERIC         |
| date\_created\_utc     | TIMESTAMP       |
| date\_updated\_utc     | TIMESTAMP       |
| email\_id              | STRING          |
| project\_id            | STRING          |
| remainder\_date\_utc   | TIMESTAMP       |
| remainder\_sent        | BOOLEAN         |
| owner\_visible         | BOOLEAN         |
| stage\_id              | STRING          |
| assigned\_by\_user\_id | STRING          |
| parent\_task\_id       | STRING          |
| recurrence             | STRING          |
| opportunity\_id        | STRING          |
| assigned\_team\_id     | STRING          |
| assigned\_date\_utc    | TIMESTAMP       |
| created\_user\_id      | NUMERIC         |
| customfields           | RECORD          |

**TeamMembers**

Purpose: Returns a list of the TeamMembers those are present in a team.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/TeamMembers/GetTeamMembers>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name             | Target Datatype |
| ---------------- | --------------- |
| permission\_id   | NUMERIC         |
| team\_id         | NUMERIC         |
| member\_user\_id | NUMERIC         |

**Teams**

Purpose: Anonymous Team which are created by the system when you set a record permission visible to Individuals

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Teams/GetTeams>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name               | Target Datatype |
| ------------------ | --------------- |
| team\_id           | NUMERIC         |
| team\_name         | STRING          |
| anonymous\_team    | BOOLEAN         |
| date\_created\_utc | TIMESTAMP       |
| date\_updated\_utc | TIMESTAMP       |
| teammembers        | RECORD          |

**Users**

Purpose: when you want to assign a task to a specific user (do not confuse the USER\_ID with their CONTACT\_ID). To filter with a field name and value, both field\_name and field\_value parameters must be provided.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Users/GetUsers>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                       | Target Datatype |
| -------------------------- | --------------- |
| user\_id                   | NUMERIC         |
| contact\_id                | NUMERIC         |
| first\_name                | STRING          |
| last\_name                 | STRING          |
| timezone\_id               | STRING          |
| email\_address             | STRING          |
| email\_dropbox\_identifier | STRING          |
| email\_dropbox\_address    | STRING          |
| administrator              | BOOLEAN         |
| account\_owner             | BOOLEAN         |
| active                     | BOOLEAN         |
| date\_created\_utc         | TIMESTAMP       |
| date\_updated\_utc         | TIMESTAMP       |
| user\_currency             | STRING          |
| contact\_display           | STRING          |
| contact\_order             | STRING          |
| team\_week\_start          | NUMERIC         |
| instance\_id               | NUMERIC         |
| profile\_id                | NUMERIC         |
| role\_id                   | NUMERIC         |

**Contacts**

Purpose: Retrieve all Contacts.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Contacts/GetEntities>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                      | Target Datatype |
| ------------------------- | --------------- |
| notes                     | RECORD          |
| events                    | RECORD          |
| tasks                     | RECORD          |
| links                     | RECORD          |
| contact\_id               | NUMERIC         |
| salutation                | STRING          |
| first\_name               | STRING          |
| last\_name                | STRING          |
| img\_url                  | STRING          |
| background                | STRING          |
| visible\_to               | STRING          |
| owner\_user\_id           | NUMERIC         |
| visible\_tean\_id         | STRING          |
| date\_created\_utc        | TIMESTAMP       |
| date\_updated\_utc        | TIMESTAMP       |
| social\_linkedin          | STRING          |
| social\_facebook          | STRING          |
| social\_twitter           | STRING          |
| date\_of\_birth           | TIMESTAMP       |
| phone                     | STRING          |
| phone\_home               | STRING          |
| phone\_mobile             | STRING          |
| phone\_other              | STRING          |
| phone\_assistant          | STRING          |
| phone\_fax                | STRING          |
| email\_address            | STRING          |
| assitant\_name            | STRING          |
| address\_mail\_street     | STRING          |
| address\_mail\_city       | STRING          |
| address\_mail\_state      | STRING          |
| address\_mail\_postcode   | STRING          |
| address\_mail\_country    | STRING          |
| address\_other\_street    | STRING          |
| address\_other\_city      | STRING          |
| address\_other\_state     | STRING          |
| address\_other\_postcode  | STRING          |
| address\_other\_country   | STRING          |
| last\_activity\_date\_utc | TIMESTAMP       |
| next\_activity\_date\_utc | TIMESTAMP       |
| created\_user\_id         | NUMERIC         |
| organisation\_id          | NUMERIC         |
| title                     | STRING          |
| email\_opted\_out         | BOOLEAN         |
| customfields              | RECORD          |
| tags                      | RECORD          |
| dates                     | RECORD          |

**Leads**

Purpose: Returns all lists of Leads.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Leads/GetEntities>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                       | Target Datatype |
| -------------------------- | --------------- |
| events                     | RECORD          |
| links                      | RECORD          |
| notes                      | RECORD          |
| tasks                      | RECORD          |
| lead\_id                   | NUMERIC         |
| salutation                 | STRING          |
| first\_name                | STRING          |
| last\_name                 | STRING          |
| lead\_source\_id           | NUMERIC         |
| lead\_status\_id           | NUMERIC         |
| title                      | STRING          |
| converted                  | BOOLEAN         |
| converted\_contact\_id     | STRING          |
| converted\_date\_utc       | TIMESTAMP       |
| converted\_opportunity\_id | STRING          |
| converted\_organistion\_id | STRING          |
| date\_created\_utc         | TIMESTAMP       |
| date\_updated\_utc         | TIMESTAMP       |
| email                      | STRING          |
| employee\_count            | NUMERIC         |
| fax                        | STRING          |
| industry                   | STRING          |
| lead\_description          | STRING          |
| lead\_rating               | STRING          |
| mobile                     | STRING          |
| owner\_user\_id            | NUMERIC         |
| phone                      | STRING          |
| responbile\_user\_id       | STRING          |
| website                    | STRING          |
| address\_street            | STRING          |
| address\_city              | STRING          |
| address\_state             | STRING          |
| address\_postcode          | STRING          |
| address\_country           | STRING          |
| last\_activity\_date\_utc  | TIMESTAMP       |
| next\_activity\_date\_utc  | TIMESTAMP       |
| visible\_to                | STRING          |
| visible\_team\_id          | STRING          |
| organisation\_name         | STRING          |
| created\_user\_id          | NUMERIC         |
| img\_url                   | STRING          |
| email\_opted\_out          | BOOLEAN         |
| customfields               | RECORD          |
| tags                       | RECORD          |

**Emails**

Purpose:Returns all list of Emails.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Emails/GetEntities>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name                    | Target Datatype |
| ----------------------- | --------------- |
| links                   | RECORD          |
| email\_to               | STRING          |
| email\_cc               | STRING          |
| email\_id               | NUMERIC         |
| email\_from             | STRING          |
| subject                 | STRING          |
| email\_date\_utc        | STRING          |
| format                  | STRING          |
| size                    | NUMERIC         |
| visible\_to             | STRING          |
| owner\_user\_id         | NUMERIC         |
| visible\_team\_id       | STRING          |
| date\_created\_utc      | STRING          |
| queued\_send\_date\_utc | STRING          |
| created\_user\_id       | NUMERIC         |
| tags                    | RECORD          |

**Events**

Purpose:Retrieve all events

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/Events/GetEntities>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                 | Target Datatype |
| -------------------- | --------------- |
| links                | RECORD          |
| event\_id            | NUMERIC         |
| title                | STRING          |
| location             | STRING          |
| start\_date\_utc     | TIMESTAMP       |
| end\_date\_utc       | TIMESTAMP       |
| all\_day             | BOOLEAN         |
| details              | STRING          |
| date\_created\_utc   | TIMESTAMP       |
| date\_updated\_utc   | TIMESTAMP       |
| remainder\_date\_utc | TIMESTAMP       |
| remainder\_sent      | BOOLEAN         |
| owner\_user\_id      | NUMERIC         |
| customfields         | RECORD          |

**ProjectCategories**

Purpose:Returns categories of a project.

Source API Documentation  <https://api.insightly.com/v3.1/Help?_ga=2.112078029.874455199.1608701747-1429860887.1608701747#!/ProjectCategories/GetProjectCategories>

Replication: Full Replication

Replication Key: NA

**Fields**

| Name              | Target Datatype |
| ----------------- | --------------- |
| category\_id      | NUMERIC         |
| category\_name    | STRING          |
| active            | BOOLEAN         |
| background\_color | STRING          |
