Skip to content

feat: add SOQL FORMULA() function support - #110

Merged
nawforce merged 1 commit into
apex-dev-tools:mainfrom
peternhale:phale/soql-formula
Jun 15, 2026
Merged

nawforce merged 1 commit into
apex-dev-tools:mainfrom
peternhale:phale/soql-formula

Conversation

@peternhale

Copy link
Copy Markdown
Contributor

Summary

  • Add FORMULA token to the lexer and parser grammars
  • Support FORMULA('expression') syntax in SOQL WHERE clause field expressions
  • Add tests for formula function parsing in both JVM and npm packages

Test plan

  • npm tests pass (92 tests, 8 suites)
  • JVM tests pass (91 tests, 0 failures)
  • CI passes on PR

🤖 Generated with Claude Code

Support the FORMULA('expression') syntax in SOQL WHERE clauses,
allowing formula expressions to be evaluated as field filters.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@kjonescertinia
kjonescertinia self-requested a review May 12, 2026 08:05
@peternhale

Copy link
Copy Markdown
Contributor Author

@nawforce I was wondering when this PR might be merged. The new function is available in Salesforce orgs now.

@nawforce
nawforce merged commit ba6b7b6 into apex-dev-tools:main Jun 15, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants