Skip to main content
Version: 5.7.0

GetCount

Counts the number of custom entities meeting the specified where clause.

ServiceOperation
customEntityGET_COUNT

Method Parameters

ParameterDescription
entityTypeThe type of custom entity to be counted.
whereJsonThe where clause, as JSON object.

Usage

http://localhost:3000
string entityType = "athletes";
string whereJson = "{\"data.position\":\"defense\"}";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.CustomEntityService.GetCount(entityType, whereJson, successCallback, failureCallback);
JSON Response
{
"status": 200
"data": {
"entityListCount": 5
}
}