CRM365切换语言的时候,产品表Product的名称字段name会改变

今天发现一个奇怪问题:CRM365切换语言的时候,产品表Product的名称字段name会改变

检查后,没有想过的Plugin和其他插件触发,后来查资料发现product.name字段会类似我们的下拉数据一样,将多语言数据保存到一个表里面,下面的SQL解决了这个问题:

begin tran

update a
set a.Label=b.new_productnumber
--select a.Label,b.new_productnumber,b.name,b.*
from BusinessDataLocalizedLabelBase a
inner join productbase b on a.ObjectId=b.ProductId
where a.ObjectIdTypeCode=1024 and a.ObjectColumnNumber=10022 and a.LanguageId=1033 
and b.name is not null

commit tran
原文地址:https://www.cnblogs.com/parkerchen/p/14483874.html