Query dataQuery = new Query('Task').addConditionLike('Owner.Name', 'Outbound%'); System.debug(LoggingLevel.INFO, '***size ' + dataQuery.run().size());
We have configured a queue group in the system called "Outbound Queue." However, this code always returns 0 when executed, but if I manually execute the SOQL obtained from dataQuery.toQueryString(), I can see that it returns data correctly.