# Salesforce: Contact Daily History

## Description

* Each record is a daily record in a contact, starting with its first active date and updating up toward either the current date (if still active) or its last active date.

## Supported Data Sources

* <img src="https://fivetran.com/integrations/salesforce/resources/salesforce.svg" alt="" data-size="line"> Salesforce

## Columns

| Type     | Name                   | Description                                                                                                                                                                                                                            |
| -------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| STRING   | contact\_day\_id       | Surrogate key hashed on `date_day` and `contact_id`                                                                                                                                                                                    |
| DATE     | date\_day              | Date on which the opportunity had these field values.                                                                                                                                                                                  |
| STRING   | contact\_id            | The unique, system-generated ID assigned during creation.                                                                                                                                                                              |
| DATETIME | \_fivetran\_start      | The time when the record was first created or modified in the source, based on a timestamp value in the source table that monotonically increases over time with data change or update.                                                |
| DATETIME | \_fivetran\_end        | The time until which the record was active minus epsilon, where epsilon is the smallest time difference that can be stored in the timestamp type value.                                                                                |
| DATE     | \_fivetran\_date       |                                                                                                                                                                                                                                        |
| STRING   | history\_unique\_key   | Surrogate key hashed on `_fivetran_start` and `contact_id`.                                                                                                                                                                            |
| BOOLEAN  | \_fivetran\_active     | true if it is the currently active record. false if it is a historical version of the record. Only one version of the record can be true.                                                                                              |
| DATETIME | \_fivetran\_synced     | The time at which fivetran last synced this record.                                                                                                                                                                                    |
| STRING   | account\_id            | ID of the account that’s the parent of this contact.                                                                                                                                                                                   |
| STRING   | email                  | The contact’s email address.                                                                                                                                                                                                           |
| STRING   | first\_name            | The contact’s first name up to 40 characters.                                                                                                                                                                                          |
| BOOLEAN  | is\_deleted            | Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted.                                                                                                                                |
| DATETIME | last\_activity\_date   | Value is the most recent of either: Due date of the most recent event logged against the record. Due date of the most recently closed task associated with the record.                                                                 |
| STRING   | last\_modified\_by\_id | Last Modified By ID                                                                                                                                                                                                                    |
| DATETIME | last\_modified\_date   | Last Modified Date                                                                                                                                                                                                                     |
| STRING   | last\_name             | Required. Last name of the contact up to 80 characters.                                                                                                                                                                                |
| INTEGER  | last\_referenced\_date | The timestamp when the current user last accessed this record, a record related to this record, or a list view.                                                                                                                        |
| DATETIME | last\_viewed\_date     | The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.                                    |
| STRING   | mailing\_city          | City mailing address details.                                                                                                                                                                                                          |
| STRING   | mailing\_country       | Country mailing address details.                                                                                                                                                                                                       |
| STRING   | mailing\_country\_code |                                                                                                                                                                                                                                        |
| INTEGER  | mailing\_postal\_code  | Postal code mailing address details.                                                                                                                                                                                                   |
| STRING   | mailing\_state         | State mailing address details.                                                                                                                                                                                                         |
| STRING   | mailing\_street        | Street mailing address details.                                                                                                                                                                                                        |
| INTEGER  | master\_record\_id     | If this record was deleted as the result of a merge, this field contains the ID of the record that remains. If this record was deleted for any other reason, or has not been deleted, the value is null. This is a relationship field. |
| INTEGER  | mobile\_phone          | Contact’s mobile phone number.                                                                                                                                                                                                         |
| STRING   | name                   |                                                                                                                                                                                                                                        |
| STRING   | owner\_id              | The ID of the owner of the account associated with this contact. This is a relationship field.                                                                                                                                         |
| STRING   | phone                  | Telephone number for the contact. Label is Business Phone.                                                                                                                                                                             |
| INTEGER  | reports\_to\_id        | This field doesn’t appear if IsPersonAccount is true. This is a relationship field.                                                                                                                                                    |
| STRING   | title                  | Title                                                                                                                                                                                                                                  |
| STRING   | lead\_source           | The lead’s source.                                                                                                                                                                                                                     |
| STRING   | description            |                                                                                                                                                                                                                                        |
| INTEGER  | individual\_id         | ID of the data privacy record associated with this contact. This field is available if Data Protection and Privacy is enabled. This is a relationship field.                                                                           |
| INTEGER  | home\_phone            | The contact’s home telephone number.                                                                                                                                                                                                   |
| INTEGER  | row\_num               |                                                                                                                                                                                                                                        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://endash-guidance-docs.gitbook.io/cigro-data-templates/data-model-templates/salesforce-contact-daily-history.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
