Discussions
Proper Join using FilterExpression
I am trying to create a filterExpression for a custom record type that has a parent/child relationship with the customer record and one condition of the filterExpression is to be applied against a custom customer field that is a Custom List. 1 = Yes, 2 = No. The code below is what I am using and in debugger it is returning the error shown below that. I've never used a join in a filterExpression before and obviously I'm doing something wrong. Can someone provide me with some sample code or suggest what I am doing wring here?
My Code:
var TRfilterExpression = [ ['custrecordcr_trainedresponder_enddate', 'within', todaysDate, todaysDatePlus120],'and', ['customer.custentitycr_deactivated','anyof',"2"],];