v1.0.0 dbt_salesforce
π£ THIS IS A MAJOR PACKAGE RELEASE! π£ More details below.
PR #45 includes the following updates:
π¨ Breaking Change π¨
- We have removed all
tmp
models in the dependentdbt_salesforce_source
package, and will use thefivetran_utils.fill_staging_column
macro to compare directly to our source models in your schemas.
π Feature Updates π
-
We have added daily history mode models in the
models/salesforce_history
folder based off of Fivetran's history mode feature, pulling from source models indbt_salesforce_source
. This will allow customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. -
IMPORTANT: All fields in your Salesforce history mode connector that are being synced are being included in the end models. To change which fields are brought in via end models, you will need to update the fields you are bringing in via your history mode connector in Fivetran and then run a
dbt run --full-refresh
. See the DECISIONLOG for more details. -
Below are the new models included in this update:
Model added | Description |
---|---|
salesforce__account_daily_history | Each record is a daily record in an account, starting with its first active date and updating up toward either the current date (if still active) or its last active date. |
salesforce__contact_daily_history | Each record is a daily record in an contact, starting with its first active date and updating up toward either the current date (if still active) or its last active date. |
salesforce__opportunity_daily_history | Each record is a daily record in an opportunity, starting with its first active date and updating up toward either the current date (if still active) or its last active date. |
-
All history models are incremental due to the volume of data being ingested.
-
We support the option to pull from both your standard Salesforce and History Mode connectors simultaneously from their specific database/schemas. We also support pulling from just your History Mode connector on its own and bypassing the standard connector on its own. See more detailed instructions for configuring your history mode database and schema variables in the README.
-
These models are disabled by default due to their size, so you will need to set the below variable configurations for each of the individual models you want to utilize in your
dbt_project.yml
. More details are available in the README.
vars:
salesforce__[history_model]_enabled: true ##Ex: salesforce__account_history_enabled: true
- We've added variable configuration that will allow you to filter the history start and end dates to filter down the data you ingest in each model. See the
Setting the date range for the Salesforce Daily History models
section in the README for more details.
π Under The Hood π
- We have deprecated the
using_[source]_history_mode_active_records
variables. The introduction of the new history mode capabilities in this package made these variables redundant.