SysGetCount
Counts the number of custom entities meeting the specified where clause.
Service | Operation |
---|---|
customEntity | SYS_DROP_COLLECTION |
Method Parameters
Parameter | Description |
---|---|
entityType | The name of the entity type collection |
whereJson | Criteria to search on |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var entityType = "athletes";
var whereJson = {
"data.position": "defense"
}
var customEntityProxy = bridge.getCustomEntityServiceProxy();
var postResult = customEntityProxy.sysGetCount(entityType, whereJson);
if (postResult.status == 200) {
// Success!
}
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200
"data": {
"entityListCount": 5
}
}