Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no NOT LIKE operator in SOQL #54

Open
TrangOul opened this issue Aug 13, 2024 · 0 comments
Open

There is no NOT LIKE operator in SOQL #54

TrangOul opened this issue Aug 13, 2024 · 0 comments

Comments

@TrangOul
Copy link

There is no NOT LIKE operator in SOQL.

The following fails on the query:

new Query(Account.SObjectType)
	.filterWhere(new SOQL.QueryFilter(Account.Name, SOQL.Operator.IS_NOT_LIKE, 'xyz'))
	.getResults()

The correct syntax is NOT Field__c LIKE 'value'.
Please either remove the SOQL.Operator.IS_NOT_LIKE operator or leave it as syntactic sugar, but with correct syntax, possibly as the negation of LIKE by making filters recursive and implementing the NOT operator (#53).

@TrangOul TrangOul changed the title There is no NOT LIKE operator There is no NOT LIKE operator in SOQL Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant