Counting the number of records in a query/query run
Hi,
This post is more for my memory more than anything else. If you need to get the number of records returned in a query or a query run you can use the following method:
SysQuery::countLoops(QueryRun)
This will return the same result as looping through the query using queryRun.next()