You need to sign in to do that
Don't have an account?
Kylee A.
Record Type (id or name) not registering in validation rule on Case
Hello there!
I have created two validation rules on case to require users to complete specific fields upon closing the case. All teams are required to complete the description except one. So, I created two rules. One for the individual team and one for everyone else.
RULE 1 - Here's the formula for (mostly) everyone:
OR(
ISPICKVAL(Type, ""),
INCLUDES(Reason__c, ""),
ISBLANK(Description),
ISPICKVAL(Resolution__c, "")
)
&&
OR(
ISPICKVAL ( Status , "Closed"),
ISPICKVAL ( Status , "Closed - Auto")
)
&&
NOT( RecordType.DeveloperName = "Credit Department")
Error message: Type, Reason, Description, and Resolution fields are required upon case close.
RULE 2 - Here's the formula for Credit Dept.:
OR(
ISPICKVAL(Type, ""),
INCLUDES(Reason__c, ""),
ISPICKVAL(Resolution__c, "")
)
&&
OR(
ISPICKVAL ( Status , "Closed"),
ISPICKVAL ( Status , "Closed - Auto")
)
&&
(RecordType.DeveloperName = "Credit Department")
Error Message: Type, Reason, and Resolution fields are required upon case close.
When I test to close a Credit Department case without reason description, it gives me the error message from the first rule. I have also tried this by using "RecordType.id = long 18 digit id" instead of name
Please advise.
I have created two validation rules on case to require users to complete specific fields upon closing the case. All teams are required to complete the description except one. So, I created two rules. One for the individual team and one for everyone else.
RULE 1 - Here's the formula for (mostly) everyone:
OR(
ISPICKVAL(Type, ""),
INCLUDES(Reason__c, ""),
ISBLANK(Description),
ISPICKVAL(Resolution__c, "")
)
&&
OR(
ISPICKVAL ( Status , "Closed"),
ISPICKVAL ( Status , "Closed - Auto")
)
&&
NOT( RecordType.DeveloperName = "Credit Department")
Error message: Type, Reason, Description, and Resolution fields are required upon case close.
RULE 2 - Here's the formula for Credit Dept.:
OR(
ISPICKVAL(Type, ""),
INCLUDES(Reason__c, ""),
ISPICKVAL(Resolution__c, "")
)
&&
OR(
ISPICKVAL ( Status , "Closed"),
ISPICKVAL ( Status , "Closed - Auto")
)
&&
(RecordType.DeveloperName = "Credit Department")
Error Message: Type, Reason, and Resolution fields are required upon case close.
When I test to close a Credit Department case without reason description, it gives me the error message from the first rule. I have also tried this by using "RecordType.id = long 18 digit id" instead of name
Please advise.
RecordType.DeveloperName = "Credit_Department"
RecordType.DeveloperName = "Credit_Department"
If you want to check with recordtype label name you need to modify like below.
If this helps, Please mark it as best answer.
Thanks!!