getRecordCount

From LongJump Support Wiki
Revision as of 22:25, 20 December 2010 by imported>Aeric (Text replace - 'getRecordCount(' to 'Functions.getRecordCount(')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Gets a count of records in an Object that match specified filtering criteria.

Notepad.png

Note: This operation is only available for composite objects, at the moment, so the filtering criteria must include at least one composite-object field, of the form alias[...].field_name.) For example: order_items.products.product_name. (The presence of the composite-object field induces composite-object processing, instead of normal-object processing.)

Syntax
int count = Functions.getRecordCount(String objectId, String criteria)
Parameters
objectId
The object identifier
criteria
A filter expression that specifies records to select.
Returns
An integer containing a count of records that match the selection criteria.