In trying to create a workflow rule to run when an Opportunity is closed won if one field is not blank and the record type is a certain Opportunity type, I am getting stuck on the last portion of the formula. I can successfully write the rule for closed won and the field value not being blank:
AND ( (ISPICKVAL(StageName,"Closed Won")), (NOT(ISBLANK(CUSTOM_FIELD__c))) )
But when I try to apply this only to certain opportunity types and use the RecordTypeId, the rule doesn't fire.
AND ( (ISPICKVAL(StageName , "Closed Won")) , (NOT( ISBLANK( CUSTOM_FIELD__c ))), OR ( RecordTypeId="01290000000OCMSAA4", RecordTypeId="01290000000OeQgAAK", RecordTypeId="01290000000OmKlAAK", RecordTypeId="01290000000Oa2bAAC" ) )
Am I missing something obvious or going about this the wrong way?