Skip to content

v1.0.0 dbt_salesforce

Compare
Choose a tag to compare
@fivetran-avinash fivetran-avinash released this 31 Oct 18:57
· 18 commits to main since this release
4d60033

πŸ“£ 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 dependent dbt_salesforce_source package, and will use the fivetran_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 in dbt_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.
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.