You need to sign in to do that
Don't have an account?
Advanced Formulas, Using Picklists in Formulas, 4th Module, Challenge not validating correctly?
https://developer.salesforce.com/trailhead/advanced_formulas/picklist_formulas
Has anyone managed to pass the challenge?
Gives error:
Challenge Not yet complete... here's what's wrong:
The validation rule does not appear to be working correctly. Marking IsEscalated to true and Priority to Medium did not fire the validation rule.
Testing that same case myself (and some permuations) the Validation rule fires correctly I think...
Here is my validation formula
AND(
ISPICKVAL( Status , "Escalated"),
OR(
IsClosed,
IsClosedOnCreate,
NOT(ISPICKVAL( Priority , "High"))
)
)
Has anyone managed to pass the challenge?
Gives error:
Challenge Not yet complete... here's what's wrong:
The validation rule does not appear to be working correctly. Marking IsEscalated to true and Priority to Medium did not fire the validation rule.
Testing that same case myself (and some permuations) the Validation rule fires correctly I think...
Here is my validation formula
AND(
ISPICKVAL( Status , "Escalated"),
OR(
IsClosed,
IsClosedOnCreate,
NOT(ISPICKVAL( Priority , "High"))
)
)
The challenge here is to set the IsEscalated field to true and not to set the status to Escalated.
So you are just usomg the wrong field in your formula.
I have tried this challenge on my org and was able to complete it and earn 500 points :)
Please use the below formula in your validation rule :
Please let me know if you still have any issue with this.
Thanks,
Abhishek Bansal.
All Answers
The challenge here is to set the IsEscalated field to true and not to set the status to Escalated.
So you are just usomg the wrong field in your formula.
I have tried this challenge on my org and was able to complete it and earn 500 points :)
Please use the below formula in your validation rule :
Please let me know if you still have any issue with this.
Thanks,
Abhishek Bansal.
You are of course correct.
Many thanks for your assistance
David
ISPICKVAL(Status, 'Closed'),
ISPICKVAL(Priority, 'Low'),
ISPICKVAL(Priority, 'Medium')),
NULL)
IsEscalated &&
(IsClosed || IsClosedOnCreate ||
Not(ISPICKVAL(Priority, "High")))
Here is my formula
IsClosedOnCreate,
NOT(ISPICKVAL(Status , "Closed")),
NOT(ISPICKVAL(Priority , "High"))
))
I cannot find a checkbox field [Closed] that the other two working formulas were referring to, is this a standard field?
Many thanks!
I understood your question. Since i dont have isClosed field in Case Object please use below formula that worked for me , you can go with below formula. I have achived 500 points
Formula:
AND(
IsEscalated, OR(ISPICKVAL(Status, "Closed"),
IsClosedOnCreate, NOT(ISPICKVAL(Priority,"High"))))
Please mark this answer as best if I have resolved your answer.