I'm trying to trigger a workflow rule over several criteria including a check against related objects (Line items) record type names. The idea is that if this all evaluates to true, it will trigger a workflow to set the claim header status to "Expired".
I've written the following formula;
IF(AND(ISCHANGED(Days_Since_Approval__c) && Days_Since_Approval__c >= 180, NOT(ISPICKVAL(Status, "Rejected") ||ISPICKVAL(Status, "Request Claim Closure") ||ISPICKVAL(Status, "Closed and Permitted to Invoice") ||ISPICKVAL(Status, "No Further Action") ||ISPICKVAL(Status, "Closed"), (Claim_Line_Item__r.RecordType.Name = "Distributor Supplied Contractor" || "Distributor Supplied Labour" || "Distributor Supplied Parts") ) ) )
It says I'm missing a bracket but I can't see where I've gone wrong, or perhaps it is wrong on multiple levels, or maybe a simpler method I'm overlooking? Any insight is much appreciated.