Cannot_update_name
true
只有系统管理员和有权限的人,才能更新客户名。
$User.Account_Name_Update__c = false && $User.ProfileId != '00e10000000Y3o5' && $User.ProfileId != '00e10000000dzzG' && ISCHANGED(Name)
增加IsUnlock__c <>true ,医院变更信息审批通过时可以同步更新客户
NOT( $User.ProfileId = '00e10000000Y3o5'
|| $User.ProfileId = '00e10000000dEQx'
||$User.ProfileId = '00e10000000dzzG'
||
(
(RecordType.DeveloperName = 'HP' || Parent.RecordType.DeveloperName = 'HP')
&&
( $User.ProfileId = '00e10000000xnpR'
|| $User.ProfileId = '00e10000000NbCE'
|| $User.ProfileId = '00e10000000xyK6'
|| $User.ProfileId = '00e10000000xnpb')
&&
(text(Is_Active__c)= '草案中' || text(Parent.Is_Active__c)= '草案中')
)
)
&& ISCHANGED(Name)
&& IsUnlock__c <> true
&& Parent.IsUnlock__c <> true
&& Parent.Parent.IsUnlock__c <> true
MaxActivityDate__c
没有权限,不能更新客户名。