从 Azure DataFactory 更新 SalesForce 中的字段

Update field in SalesForce from Azure DataFactory

我正在寻找一种方法来从 Azure DataFactory 管道更新 SalesForce 中的字段。我有从 SalesForce 到 SQL 服务器的标准复制管道,然后我对下载的数据执行存储过程,之后我需要更新 SalesForce 中在过程后更改的字段。现在我完全不知道如何尝试。

您可以将您的副本 activity 与存储过程 activity 链接起来,然后添加另一个副本 activity。您可以使用 ADF V2 UI 来帮助您创建管道。

https://docs.microsoft.com/en-us/azure/data-factory/quickstart-create-data-factory-portal#create-a-pipeline

Azure 支持销售人员作为源和接收器。要将数据复制到 Salesforce,您必须使用 Salesforce 作为接收器类型。

我对 Azure 了解不多,但this link 会帮助您将 salesforce 设置为接收器。

您可能难以设置 externalIdFieldName。如果您在 salesforce 中已有包含唯一值 (except if field) 的字段,请编辑该字段并将 External ID 标记为已选中。如果没有可用的唯一字段,则需要在 salesforce (below step is not needed if we map id field of salesforce with database table containing salesforce id value. You can try without adding externalIdFieldName, if not working then use below) 中进行以下更改:

  1. 在 salesforce 中创建自定义字段,勾选 'External ID'。例如字段 api 名称是 pipelinecol__c
  2. 将 id 列的现有数据复制到新创建的字段,即 pipelinecol__c 使用数据加载器或代码。

同步部分将根据您的情况配置如下:

"sink": {
                "type": "SalesforceSink",
                "writeBehavior": "Update",
                "externalIdFieldName": "pipelinecol__c",
                "writeBatchSize": 10000,
                "ignoreNullValues": true
            }