3 Messages
•
355 Points
Validation Rule script using "isequal" seems to return true/valid regardless of values.
My use case: Validate that the Name and Full Name attributes have the same value.
The script
rule {
isEqual(attributes.'Full Name'.first(), attributes.'Name'.first(), message:"The Full Name and Name attributes must have the same value" )
}
The rule returns valid/true -- even when the values are different.
I've also tried this:
rule {
isEqual(attributes.'Full Name'?.first(), attributes.'Name'?.first(), message:"The Full Name and Name attributes must have the same value" )
}
and this:
rule {
isEqual(attributes.'Full Name', attributes.'Name', message:"The Full Name and Name attributes must have the same value" )
}
Any help is appreciated. Thank you.
grantrollerson1
132 Messages
•
9.1K Points
2 months ago
not sure if you already checked Validation script examples (collibra.com)
2
anthonydavis
3 Messages
•
355 Points
2 months ago
I ultimately got the script to work using just name and displayName.
rule {
isEqual(name,displayName, message:"The Full Name and Name attributes must have the same value" )
}
0
0