I'm having a problem with the configuration of a filter query.
This is what I want to achieve:
There is a drop down on a form listing accounts and these accounts must belong to the current selected site and must be marked as being active, must be of the current user, and must not be used already in the current campaign..
Here is the filter query I'm currently using:
FIND Account WHERE Account.Site.ID=ThisVote.Campaign.Site.ID
AND Account.RegularUser.ID=LoggedInRegularUser.ID
AND Account.Status='Active'
AND NOT(Account IN ThisVote.Campaign.Accounts)
The query works fine if I drop the last line, otherwise it always returns an empty list.
Accounts are inserted into Campaign.Accounts by a rule upon creation of a new Vote object.
Any help on this would be greatly appreciated.
Thanks