You need to sign in to do that
Don't have an account?
Kumar5
need help with validaiton rule
Hi Team,
Could you please help me with below validation rule. i have to want inlcude two user ids..
AND(
RecordTypeId == $Setup.ObjectRecordTypeIds__c.Case_RecordType__c,
LEN( Subject) >250,
OR(
ISNEW(),
ISCHANGED(RecordTypeId)
),
!AND(ISNEW(), RecordTypeId == $Setup.ObjectRecordTypeIds__c.Case_RecordType__c,ISPICKVAL (Contact_Type__c , 'employee'), $User.Id = '0058000000', $User.Id = '0053000000'),
skipValidations__c = False
)
Thanks,
Kumar
Could you please help me with below validation rule. i have to want inlcude two user ids..
AND(
RecordTypeId == $Setup.ObjectRecordTypeIds__c.Case_RecordType__c,
LEN( Subject) >250,
OR(
ISNEW(),
ISCHANGED(RecordTypeId)
),
!AND(ISNEW(), RecordTypeId == $Setup.ObjectRecordTypeIds__c.Case_RecordType__c,ISPICKVAL (Contact_Type__c , 'employee'), $User.Id = '0058000000', $User.Id = '0053000000'),
skipValidations__c = False
)
Thanks,
Kumar
You can try adding OR condition for userId's:
Pls let me know if helped.
Regards,
Ramakant
All Answers
Though your question is not clear. I think you are putting wrong User.Id, It should be 15 digit.
Please let me know if helped.
Regards,
Ramakant
Thank you for your reply.
Previously the same validaiton rule is there for one user id. now i want to add one more user id. Just for reference i gave that user id
Thanks,
Kumar
You can try adding OR condition for userId's:
Pls let me know if helped.
Regards,
Ramakant