I am working on a business segment rule that brings in aspects of the parent and assesses the child account record elements. I have pieces of this working but when I put them together it errors. My goal is:
If the parent exists (test = Parent.id <> null) AND as long as the parent type is not equal to investor, run case statement 1, else run case statement 2.
I have been messing around with the parens, but I believe the following is so close. I am getting this error now:
incorrect parameter type for function 'AND()'. Expected Boolean, received Text
IF(Parent.Id <> Null,
(AND(ISPICKVAL(parent.type, "investor"),
CASE(Sales_Business_Segment__c ,
'Growth', 'Growth',
'Enterprise', 'Enterprise',
DataFox_Account_Definition__c),
CASE(Parent.Sales_Business_Segment__c ,
'Growth', 'Growth',
'Enterprise', 'Enterprise',
Parent.DataFox_Account_Definition__c)
)))