[SalesForce] Apex Dataloader -IN Operator issue

We need to run a job on 1000's of records by filtering over an ID. In the dataloader when the condition section doesnt show IN or contains or LIke option.

However i tried to put a condition manually like : ID like ('a','b'). And the extract just pulled the record for 'a' , not for b.

How can I pass multiple Id's in my query?

Also my Id list would be quite a huge list about 3000 : does it look a feasible approach to consider?

Best Answer

LIKE is used to find wildcard matches. Instead, you would want to use the IN operator:

SELECT ... FROM ... WHERE ID IN ('A','B','C','D',...)

While the Data Loader probably won't show "IN" (because it's not designed to automatically build that filter), IN should definitely produce the desired output.

Related Topic