fuyu
2023-01-05 c2c5fc25aa9e92a0ab8ebcea4e01a176359d2f78
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>NotAdminCannotCreateTask</fullName>
    <active>true</active>
    <description>非系统管理员不能创建被动任务</description>
    <errorConditionFormula>ISNEW() &amp;&amp; Text(taskDifferent__c) = &apos;被动任务&apos; &amp;&amp;  $User.ProfileId != &apos;00e10000000Y3o5&apos;</errorConditionFormula>
    <errorMessage>非系统管理员不能创建被动任务</errorMessage>
</ValidationRule>