You need to sign in to do that
Don't have an account?
Tommy Sunderland 16
Validation Rule based on Opportunity Stage not firing
Having an issue getting a very lengthy Validation Rule to run. Please see the following. The short of the long is to only allow Stage to be "Closing - Confirmed" if:
- Order Process Type is Month to Month
- # of Activities > 0
- Product selected
- App associated to Account
- App has CC info
- Proper Pricing Model selected
- Proper Type selected
-------------------------------------
AND(
ISCHANGED( StageName ),
ISPICKVAL(StageName, 'Closing - Confirmed'),
ISPICKVAL(Order_Process_Type__c, 'Month to Month'),
Number_of_Activities__c > 0,
AND(
Purchase_Educate__c = false,
OR(
ISPICKVAL(Purchase_Engage__c, 'No'),
ISBLANK(TEXT(Purchase_Engage__c))
),
OR(
ISPICKVAL(Purchase_Resolve__c, 'No'),
ISBLANK(TEXT(Purchase_Resolve__c))
)
),
OR(
Account.Apps_With_Credit_Card__c=0,
ISNULL(Account.Apps_With_Credit_Card__c)
),
OR(
Account.Total_Number_of_Apps__c=0,
ISNULL(Account.Total_Number_of_Apps__c)
),
Account.Number_of_Active_Apps__c > 0,
OR(
AND(
RecordTypeId = "0121N0000012cms",
ISPICKVAL(Pricing_Model__c, 'Month to Month (No Base High)'),
OR (
ISPICKVAL(Type, 'New Business - Inbound'),
ISPICKVAL(Type, 'New Business - Outbound')
)
),
AND(
RecordTypeId = "0121N0000012cmn",
ISPICKVAL(Pricing_Model__c, 'Per Product Pricing with Seats'),
OR (
ISPICKVAL(Type, 'New Business - Inbound'),
ISPICKVAL(Type, 'New Business - Outbound')
)
)
)
)
- Order Process Type is Month to Month
- # of Activities > 0
- Product selected
- App associated to Account
- App has CC info
- Proper Pricing Model selected
- Proper Type selected
-------------------------------------
AND(
ISCHANGED( StageName ),
ISPICKVAL(StageName, 'Closing - Confirmed'),
ISPICKVAL(Order_Process_Type__c, 'Month to Month'),
Number_of_Activities__c > 0,
AND(
Purchase_Educate__c = false,
OR(
ISPICKVAL(Purchase_Engage__c, 'No'),
ISBLANK(TEXT(Purchase_Engage__c))
),
OR(
ISPICKVAL(Purchase_Resolve__c, 'No'),
ISBLANK(TEXT(Purchase_Resolve__c))
)
),
OR(
Account.Apps_With_Credit_Card__c=0,
ISNULL(Account.Apps_With_Credit_Card__c)
),
OR(
Account.Total_Number_of_Apps__c=0,
ISNULL(Account.Total_Number_of_Apps__c)
),
Account.Number_of_Active_Apps__c > 0,
OR(
AND(
RecordTypeId = "0121N0000012cms",
ISPICKVAL(Pricing_Model__c, 'Month to Month (No Base High)'),
OR (
ISPICKVAL(Type, 'New Business - Inbound'),
ISPICKVAL(Type, 'New Business - Outbound')
)
),
AND(
RecordTypeId = "0121N0000012cmn",
ISPICKVAL(Pricing_Model__c, 'Per Product Pricing with Seats'),
OR (
ISPICKVAL(Type, 'New Business - Inbound'),
ISPICKVAL(Type, 'New Business - Outbound')
)
)
)
)
I believe you are hitting the 5000 formula compile size character limit and are looking for ways to optimize this? Here are sme things you can do.