Allow replication of ANYTYPE data type from source Salesforce to target Snowflake
Audit type tables within Salesforce record data in fields with ANYTYPE datatype to account for the varying degree of types to be populated into the tables. We need to the ability to pull these fields into Snowflake for reporting metrics based on activity performed.
Thank you for the suggestion. For audit type tables, these are not currently supported by the Salesforce CDC API, as such is Full Load only acceptable for your use case? Also, could you provide a list of the objects/tables you require? Thank you!
We are facing the same issue with ANYTYPE data types:
SalesForce History tables contain fields called NEWVALUE and OLDVALUE that are defined as ANYTYPE. A field that is actioned (i.e. update) generates a History row. The 'before' and 'after' data is stored in the OLDVALUE and NEWVALUE columns. These columns are defined as ANYTYPE because multiple data types can be present in one table and the 'value' columns need to capture any data type. Examples of table names are AccountHistory, ContactHistory etc.
I think there are ways to work around the CDC API limitations to be able to provide this data.
Here are the salesforce history tables we are interested in :
AccountHistory
CampaignHistory
CaseHistory
Consent__History
ContactHistory
FinServ_ContactContactRelation_History
LeadHistory
OpportunityFieldHistory
OpportunityHistory
Can you please provide a link to the Salesforce CDC API documentation, where it clearly states that these ANYTYPE fields are not supported by the API ? (So I can push salesforce with an enhancement request).
Full load is not an option. At production volumes, these history tables will have too much volume to do full loads on a daily basis.
Our stakeholders are saying they need the contents of the ANYTYPE fields in the history tables, so our team needs support on finding a solution to this.
Also, what is your use case for replicating the history tables specifically? Do you have latency requirements here? This information will help us come up with a possible solution.
Thank you all for the additional input. We do have it on our roadmap to add an incremental load option for those Salesforce objects not supported by the Streaming CDC API and will support ANYTYPE data type at this time as well.
NOTE: Upon clicking this link 2 tabs may open - please feel free to close the one with a login page. If you only see 1 tab with the login page, please try clicking this link first: Authenticate me! then try the link above again. Ensure pop-up blocker is off.