Skip to content

Releases: fivetran/dbt_salesforce

v1.3.0 dbt_salesforce

26 Jun 19:57
25cd3c9
Compare
Choose a tag to compare

PR #65 includes the following updates:

Breaking Change for dbt Core < 1.9.6

Note: This is not relevant to Fivetran Quickstart users.

Migrated freshness from a top-level source property to a source config in alignment with recent updates from dbt Core (Salesforce Source v1.2.0). This will resolve the following deprecation warning that users running dbt >= 1.9.6 may have received:

[WARNING]: Deprecated functionality
Found `freshness` as a top-level property of `salesforce` in file
`models/src_salesforce.yml`. The `freshness` top-level property should be moved
into the `config` of `salesforce`.

IMPORTANT: Users running dbt Core < 1.9.6 will not be able to utilize freshness tests in this release or any subsequent releases, as older versions of dbt will not recognize freshness as a source config and therefore not run the tests.

If you are using dbt Core < 1.9.6 and want to continue running Salesforce freshness tests, please elect one of the following options:

  1. (Recommended) Upgrade to dbt Core >= 1.9.6
  2. Do not upgrade your installed version of the salesforce package. Pin your dependency on v1.2.1 in your packages.yml file.
  3. Utilize a dbt override to overwrite the package's salesforce source and apply freshness via the previous release top-level property route. This will require you to copy and paste the entirety of the previous release src_salesforce.yml file and add an overrides: salesforce_source property.

Under the Hood

  • Updates to ensure integration tests use latest version of dbt.

Full Changelog: v1.2.1...v1.3.0

v1.2.1 dbt_salesforce

02 Jun 14:57
cb4329e
Compare
Choose a tag to compare

This release includes the following updates:

Under the Hood

  • Prepends materialized configs in the package's dbt_project.yml file with + to improve compatibility with the newer versions of dbt-core starting with v1.10.0. (PR #62)
  • Updates the package maintainer pull request template. (PR #63)

Contributors

Full Changelog: v1.2.0...v1.2.1

v1.2.0 dbt_salesforce

22 Jan 19:08
e204a7e
Compare
Choose a tag to compare

This release includes the following updates:

Quickstart Fixes

  • Fixed casing syntax in quickstart.yml to match the default options in the Salesforce connector schema tab. Source tables are now in upper case, and snake casing is updated to camel casing. (#61)

Documentation

  • Added Quickstart model counts to README. (#59)
  • Corrected references to connectors and connections in the README. (#59)
  • Moved badges at top of the README below the H1 header to be consistent with popular README formats. (#61)

Full Changelog: v1.1.1...v1.2.0

v1.1.1 dbt_salesforce

24 Jul 20:52
bd88214
Compare
Choose a tag to compare

PR #56 includes the following updates:

Bugfix

  • Updated the logic for model int_salesforce__date_spine to reference the stg_* staging models instead of the source tables.
    • This was necessary since the staging models account for multiple spellings of column names while the source tables do not.

Under the hood

  • Added --depends_on: comments to int_salesforce__date_spine to prevent errors during dbt run.
  • Added flags.WHICH in ('run', 'build') as a condition in int_salesforce__date_spine to prevent call statements from querying the staging models during a dbt compile.

Full Changelog: v1.1.0...v1.1.1

v1.1.0 dbt_salesforce

15 Jul 15:59
e945a33
Compare
Choose a tag to compare

PR #55 includes the following updates:

🚨 Breaking Change 🚨

  • This change is made breaking due to changes made in the source package. See the v1.1.0 dbt_salesforce_source release notes for more details.
  • Added logic to support user-specified scenarios where the Fivetran Salesforce connector syncs column names using the original Salesforce API naming convention. For example, while Fivetran typically provides the column as created_date, some users might choose to receive it as CreatedDate according to the API naming. This update ensures the package is automatically compatible with both naming conventions.
    • Specifically, the package now performs a COALESCE, preferring the original Salesforce API naming. If the original naming is not present, the Fivetran version is used instead.
    • Renamed columns are now explicitly cast to prevent conflicts during the COALESCE.
    • ❗This change is considered breaking since the resulting column types may differ from prior versions of this package.

Under the hood

  • Added validation test to ensure the final column names generated before and after this update remain the same.

Full Changelog: v1.0.2...v1.1.0

v1.0.2 dbt_salesforce

17 Jun 16:03
614880a
Compare
Choose a tag to compare

PR #52 includes the following updates:

Bug fixes

  • Updated model int_salesforce__date_spine to accommodate when the Salesforce lead object exists but has no records. In this case, the model now defaults to a range of one-month from the current date.

Under the hood

  • Updated structure of model int_salesforce__date_spine for improved performance and maintainability.
  • Updated maintainer pull request template.

Full Changelog: v1.0.1...v1.0.2

v1.0.1 dbt_salesforce

20 Feb 17:56
169028f
Compare
Choose a tag to compare

PR #48 includes the following updates:

Bug Fix

  • Aligns the last_date_query logic in the int_salesforce__date_spine model with the first_date_query logic. This ensures that users with empty opportunity tables will have a valid end-date (based on lead instead of opportunity) for the salesforce__daily_activity end model.
    • Also adds coalesce-logic to int_salesforce__date_spine to ensure a succesful run without lead data.

Documentation

  • Documents how users without an opportunity table can still have the package run successfully for them. See README for details.

Under the Hood

  • Included auto-releaser GitHub Actions workflow to automate future releases.

Full Changelog: v1.0.0...v1.0.1

v1.0.0 dbt_salesforce

31 Oct 18:57
4d60033
Compare
Choose a tag to compare

📣 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.

v0.9.3 dbt_salesforce

06 Oct 16:20
099a952
Compare
Choose a tag to compare

PR #44 introduces the following update:

🪲 Bug Fix ⚒️

  • Updated the first_date_query logic in int_salesforce__date_spine to select first date from the minimum created_date on the opportunity source when the lead source is not available.

Full Changelog: v0.9.2...v0.9.3

v0.9.2 dbt_salesforce

21 Aug 19:05
2cc0124
Compare
Choose a tag to compare

Documentation and Notice Updates

PR #42 includes the following update:

  • Notices were added to both the top of the CHANGELOG and within the README to alert users of the Quickstart Data Model that Salesforce formulas will be replicated in the Fivetran transformation. For non Quickstart Data Model users there will be no change following this update.
    • If you would like to learn more about the Quickstart Data Model for Salesforce you can find more information here.

Full Changelog: v0.9.1...v0.9.2