I am trying to create a validation rule that prevents the user from creating a quote until an account has been accepted or pre-accepted AND has a record type of products and services. The rule works well when I have one picklist value, but not when I add a second option. Can you please tell me where I am going wrong?
Thank you!
!ISPICKVAL(SBQQ__Account__r.Screening_Status__c , "Accepted"), (SBQQ__Account__r.Screening_Status__c , "Pre-Accepted") && (SBQQ__Opportunity2__r.RecordType.Name = "Products and Services"))
2 个回答
Eric Praud (Activ8 Solar Energies) Forum Ambassador
HI Lauren, Try this:
AND(
NOT(
OR(ISPICKVAL(SBQQ__Account__r.Screening_Status__c , "Accepted"),
ISPICKVAL(SBQQ__Account__r.Screening_Status__c , "Pre-Accepted"))),
SBQQ__Opportunity2__r.RecordType.Name = "Products and Services")