简体   繁体   English

Google Data Fusion Salesforce 到 Bigquery Pipeline,Salesforce 中模式更新的自动管理方式

[英]Google Data Fusion Salesforce to Bigquery Pipeline, automatic way of managing schema updates in Salesforce

Hey I am trying to create some batch jobs that reads from a couple Salesforce Objects and pushes them to BQ.嘿,我正在尝试创建一些批处理作业,这些作业从几个 Salesforce 对象中读取并将它们推送到 BQ。 Every-time batch process runs it will truncate the table in BQ and push all the data in the SF object back into BQ.每次批处理运行时,它将截断 BQ 中的表并将 SF object 中的所有数据推回 BQ。 Is it possible for google data fusion to automatically detect changes in an object in Salesforce(like adding a new column or changing data types of a column) then be registered and pushed to BQ via google data fusion?谷歌数据融合是否有可能自动检测 object 中 Salesforce 的变化(如添加新列或更改列的数据类型),然后通过谷歌数据融合注册并推送到 BQ?

For SF side of the puzzle you could look into https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_describeGlobal.htm and If-Modified-Since header telling you if the definition of table(s) changed.对于难题的 SF 方面,您可以查看https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_describeGlobal.htmIf-Modified-Since header 告诉您是否定义表已更改。 That url is for all tables in the org or you run table-specific metadata describe calls with https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_describe.htm url 适用于组织中的所有表,或者您运行特定于表的元数据描述调用https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_sobject_describe.htm

But I can't tell you how to use it in your job.但我不能告诉你如何在你的工作中使用它。

You can use the provided answer of @eyescream to be the condition or the trigger for the update to BigQuery.您可以使用@eyescream 提供的答案作为更新 BigQuery 的conditiontrigger You may push changes to BigQuery using the pre-built plugin Stream Source approach from Datafusion in which, as mentioned in this docmentation , it您可以使用来自 Datafusion 的预构建插件Stream Source方法将更改推送到 BigQuery,如本文档中所述,它

tracks updates in Salesforce sObjects.跟踪 Salesforce sObjects 中的更新。 Examples of sObjects are opportunities, contacts, accounts, leads, any custom object, etc. sObjects 的示例有机会、联系人、客户、潜在客户、任何自定义 object 等。

You may use this approach to automatically track changes and push them to BigQuery.您可以使用这种方法来自动跟踪更改并将它们推送到 BigQuery。 You can also find the whole Salesforce Streaming Source configuration reference in this documentation as also redirected from google's official documentation.您还可以在本文档中找到完整的Salesforce Streaming Source配置参考,这也是从谷歌的官方文档重定向而来的。

However, if you want a more dynamic approach for your overall use case, you may also use the integration of BigQuery with Salesforce .但是,如果您希望针对整体用例采用更动态的方法,您还可以使用BigQuery 与 Salesforce 的集成 However in this approach, you will need to build your own code in which you can also use @eyescream 's answer as the primary condition/trigger and then automatically push the update to your BigQuery schema.但是,在这种方法中,您将需要构建自己的代码,您还可以在其中使用@eyescream 的答案作为主要条件/触发器,然后自动将更新推送到您的 BigQuery 模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将数据从 BigQuery 加载到 Salesforce - Loading data from BigQuery to Salesforce Elasticsearch 到 BigQuery 管道部署在云数据融合实例上失败 - Elasticsearch to BigQuery pipeline deployment fails on cloud data fusion instance 仅移动已读取 Google Cloud Data Fusion 管道的文件 - Move only files that were read Google Cloud Data Fusion pipeline 实时 Google 数据融合管道是否支持 HTTP 插件? - Is the HTTP Plugin supported in Real-time Google Data Fusion pipeline? 使用数据融合将 pubsub 消息摄取到 Bigquery - pubsub message ingestion into Bigquery using data fusion 从云数据融合管道连接到谷歌云 sql 用于 postgres 的问题 - Issue connecting to google cloud sql for postgres from cloud data fusion pipeline 带有 Salesforce 的 Google Document AI(发票 OCR) - Google Document AI(invoice OCR) with Salesforce 用于 Bigquery Schema/ddl 部署的 CICD 管道 - CICD pipeline for Bigquery Schema/ ddl deployment 云数据融合管道中的 SCD 类型 2 实现 - SCD type 2 implementation in Cloud Data Fusion Pipeline BigQuery Execute 失败,在 Cloud Data Fusion 上没有有意义的错误 - BigQuery Execute fails with no meaningful error on Cloud Data Fusion
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM