Can you query an object using the IN operator where the value is a variable?
This works:
stfilter = 'Kansas'
Select ID from LIcense__c where State__c IN (:stFilter)
This however doesn't work:
stfilter = ''Kansas', 'Missouri''
Select ID from LIcense__c where State__c IN (:stFilter)
BUT if I take the same thing and just put it in the query it does work:
Select ID from LIcense__c where State__c IN ('Kansas','Missouri')
Do I need to transform the string somehow first?