Your generated SOQL query and Apex appear here.
Salesforce developer assistant
Generate SOQL Queries for Salesforce Instantly
Describe the records you need and this SOQL query generator writes a governor-safe Salesforce query with the right fields, filters, parent-child relationships, and ordering — free and ready to run. Wrap your query in reusable logic with the Apex class generator.
Generated result
SOQL query workspace
Your generated test class appears here.
AI-generated code. Always review and test before deploying to any environment.
Plain English explanation
Describe the Salesforce records you want and generate a governor-safe SOQL query, supporting Apex, and a concise explanation.