You need to sign in to do that
Don't have an account?

Using LIKE clause against RecordType SobjectType field
Hey,
The following SOQL query:
throws an 'INVALID_QUERY_FILTER_OPERATOR' error: 'invalid operator on id field'.
The 'like' clause works fine on other RecordType fields (e.g. Name), and on picklists on other objects (e.g. User.Salutation).
Was wondering what's special about this particular field (RecordType.SobjectType), and if anybody knows of a workaround, aside from the obvious - select all records and filter the output with a regexp '^whatever.*'
Thanks!
The following SOQL query:
select Name , SobjectType from RecordType where SobjectType like 'whatever%'
throws an 'INVALID_QUERY_FILTER_OPERATOR' error: 'invalid operator on id field'.
The 'like' clause works fine on other RecordType fields (e.g. Name), and on picklists on other objects (e.g. User.Salutation).
Thanks!
[more searching...]
This is an old post, but "DevAngel" confirms that (at least at one point) LIKE is not available for picklist fields: http://community.salesforce.com/sforce/board/message?board.id=general_development&thread.id=698&view=by_date_ascending&page=2