I have a validation rule below that I'm trying to understand/work the PRIORVALUE function into. This is the validation rule:
AND(
NOT(ISBLANK(JournalsAssigned__c)),
NOT(ISBLANK(JournalLimit__c)),
JournalsAssigned__c > JournalLimit__c
)
My issue with the validation rule right now is that it doesn't trigger soon enough. Each Individual under a Company has a "Journal Quantity" field. These are rolled up in a declarative rollup summary to the "Journals Assigned" field which cannot exceed the "Journal Limit" field. However, since it has to wait to "roll up", I'm able to save the "Journal Quantity" field with whatever values I want, even if it will end up exceeding the Journal Limit once it's rolled up. Then, when I try to do something else -- like create an affiliation or something, I get the validation rule error randomly. Someone else suggested working the PRIORVALUE function into my formula, which I'm not sure how to do and not sure I understand how that would resolve it. Any thoughts/guidance?
Thanks,
Amy
1 answer
Hi Amy,