Query language issue - illegal token error

Can anyone tell me why this query works for an iterator event:

"memberID = " + record.recordID

but this one does not:

"memberID = " + record.recordID + " AND awardDateOfAward > " + record.values.memberCurrentAppointmentDate

I get a “found an illegal token” error when I add the date comparison.

1 Like

I’d imagine you’d have to do "memberID = " + record.recordID + " AND awardDateOfAward > '" + record.values.memberCurrentAppointmentDate + "'" (notice single quotes); might do the trick.
You might also have to wrap the timestamp with DATE()

1 Like

That worked. Thanks.

1 Like