简体   繁体   English

CRM Dynamics 2015:使用Scribe有条件地更新CRM中的字段

[英]CRM Dynamics 2015: Conditionally updating a field in CRM using Scribe

We are using scribe to migrate data from a source into CRM 2015 Online. 我们正在使用划线员将数据从源迁移到CRM 2015 Online。 The DTS will run every 15 mins. DTS将每15分钟运行一次。 Is it possible update the fields in the target based on a condition? 是否可以根据条件更新目标中的字段?

Currently I am following this approach: 目前,我正在采用这种方法:

IF(S1= UserVariables,#NULL!,S1 ). 

Also “Allow NULL values to overwrite Target data” is unchecked. 同样,未选中“允许使用NULL值覆盖目标数据”。 UserVariable is linked to that particular field. UserVariable链接到该特定字段。

The main reason for trying it this way is to stop the audit logs from building up in CRM if the source value is unchanged.(The client wants auditing ON for everything!). 尝试这种方式的主要原因是,如果源值不变,则阻止在CRM中建立审核日志。(客户端希望对所有内容都启用审核!)。 This is not working however. 但是,这不起作用。 It is skipping the rows! 它正在跳过行! No updates are performed even if the source value is different from target. 即使源值与目标值不同,也不会执行任何更新。

I tried IF(S1= "targetfield",#NULL!,S1 ) , This time the updates are performing even if the source=target ! 我尝试了IF(S1= "targetfield",#NULL!,S1 ) ,这一次更新正在执行,即使source=target Thus building up the audit logs. 从而建立审核日志。

Turning off auditing is not an option! 无法关闭审核! Is there any other way to do this? 还有其他方法吗?

Note: Using scribe insight v.7.7 on-premise. 注意:在内部使用scribe洞察v.7.7。

I use CozyRock and Kingsway Soft mainly (Kingsway my personal pref), so I'm not 100% on the optimal approach for Scribe. 我主要使用CozyRock和Kingsway Soft(我个人偏爱Kingsway),所以我并不是Scribe最佳方法的100%。

Anyhow, I normally write these to a staging table and then only update what will change. 无论如何,我通常将它们写入登台表,然后仅更新将要更改的内容。 So if you: 因此,如果您:

  1. Pulled records from the data source 从数据源中提取记录
  2. Pulled corresponding records from CRM 从CRM中提取相应的记录
  3. Compared locally and built a staging table of only what will change 在本地进行比较,并构建仅会更改的临时表
  4. Finally update based on staging table records 最后根据暂存表记录进行更新

This approach is typically faster and would not write unnecessary records to the audit log. 这种方法通常更快,并且不会将不必要的记录写入审核日志。

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

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