简体   繁体   English

将 Salesforce 与 Salesforce 集成

[英]Integrate Salesforce with Salesforce

I'm trying to get updated account records from a Salesforce organization pushTopic subscription and trying to add the changes in another Salesforce organization .我正在尝试从 Salesforce 组织pushTopic订阅获取更新的帐户记录,并尝试在另一个 Salesforce 组织中添加更改。 If the second organization already has the particular account, it should be updated else it should be create as new account.如果第二个组织已经拥有特定帐户,则应对其进行更新,否则应将其创建为新帐户。 For this scenario I need to check the second organization account with first organization account records.对于这种情况,我需要检查第二个组织帐户和第一个组织帐户记录。 How can we do it since Salesforce doesn't have unique key other than record id?既然 Salesforce 除了记录 ID 之外没有唯一键,我们该怎么做?

Create a big object which will hold the first organization record Id with the equivalent new org record Id.创建一个大的 object,它将保存第一个组织记录 ID 和等效的新组织记录 ID。 Through this, you will get to know the records which are already inserted.通过这个,您将了解已经插入的记录。
If the record Id is not present in the big object which means that you need to create a new record and create one more big object record with a new record Id and old record Id (for further checking).如果记录 ID 不存在于大 object 中,这意味着您需要创建一个新记录并使用新记录 ID 和旧记录 ID 创建一个更大的 object 记录(以供进一步检查)。
You can use custom object as well but the optimal solution could be creating a big object.您也可以使用自定义 object,但最佳解决方案可能是创建一个大的 object。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM