You need to sign in to do that
Don't have an account?

Validation Rule to create Opportunities
I'm creating VR on opportunities with conditions as below but getting error, please suggest the one VR to include all below conditions :
Opportunities with field Type = Advance Stock field Stock Approval = (“Stock/POS (Standard)” OR “Stock/POS (Discounted)”)
Opportunities with field Type = Consignment Stock, field Stock Approval = (“Consignment & Demo”)
Opportunities with field Type = POS field Stock Approval = (“Stock/POS (Standard)” OR “Stock/POS (Discounted)”)
Opportunities with field Type = Advance Stock field Stock Approval = (“Stock/POS (Standard)” OR “Stock/POS (Discounted)”)
Opportunities with field Type = Consignment Stock, field Stock Approval = (“Consignment & Demo”)
Opportunities with field Type = POS field Stock Approval = (“Stock/POS (Standard)” OR “Stock/POS (Discounted)”)
when the validation rule should fire?
Thanks!!
Thank you for your reply, Actually each of these conditions fire seperate validation message.
try with above two validation rulles.
If this helps, Please mark it as best answer.
Thanks!!
I'm currently trying with below approach but validation error is not executed on Opportunities record as VR is also on Opportunities.
P.S. Stock Approval is multiselect field so using INCLUDES in below formula.
AND(OR(ISPICKVAL(Type,"Advance Stock"),
OR(INCLUDES( Account.l2a_Stock_Approval__c , "Stock/POS (Standard)")),
INCLUDES( Account.l2a_Stock_Approval__c , "Stock/POS (Discounted)"))))
***Validation Error Message***
AND(OR(ISPICKVAL(Type,"POS"),
OR(INCLUDES( Account.l2a_Stock_Approval__c , “Stock/POS (Standard)”)),
INCLUDES( Account.l2a_Stock_Approval__c , "Stock/POS (Discounted)"))))
***Validation Error Message***
AND(ISPICKVAL(Type,"Consignment Stock"), NOT(INCLUDES(Account.l2a_Stock_Approval__c, "Consignment & Demo")))
***Validation Error Message***