Skip to main content
The 2024 Developer Survey results are live! See the results
2 votes

Apex Batch QueryLocator : SOQL statements cannot query aggregate relationships more than 1 level away from the root entity object

Even if this were supported, this is a bad idea. Even using just plain one-level subquery causes significant performance penalties in batchable classes in the start method. You can, and should, query ...
sfdcfox's user avatar
  • 497k
1 vote

data is not showing on UI screen what is error in my program plz ans if any know this what mistake i m doing in this

You have declared searchInput twice in your JavaScript file. In your @wire service, you're using searchInput: '$searchKey', but searchKey is not defined anywhere in your code. You should use ...
Tushar Jadav's user avatar
  • 2,268
1 vote

Querying parent-->Child-->Grand child data using salesforce API

I know I'm way late to the party, but now in the Summer '24 release you can traverse five levels of parent child records. List<Account> accts = [SELECT Name, (SELECT LastName, (...
Kevin Antonioli's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible