Skip to main content
Version: 6.0.0

SysGetEntityPage

Retrieves first page of custom entities from the server based on the custom entity type and specified query context. Bypasses ownership/ACL checks.

Note that for collections with > 1,000 records, it is recommended that doCount be set to false for better performance.

Example context object:

{
"pagination": {
"rowsPerPage": 50,
"pageNumber": 1,
"doCount": false
},
"searchCriteria": {
"data.position": "defense"
},
"sortCriteria": {
}
}
ServiceOperation
customEntitySYS_GET_ENTITY_PAGE

Method Parameters

ParameterDescription
entityTypeThe type of custom entity being retrieved.
contextA context object describing the desired paging behaviour

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"_serverTime": 1637946319239,
"context": "eyJzZWFyY2hDcml0ZXJpYS...",
"results": {
"count": 1,
"page": 1,
"items": [
{
"entityId": "1497cc7e-66cb-4682-9eac-c755523369a8",
"version": 3,
"acl": {
"other": 1
},
"ownerId": null,
"expiresAt": null,
"timeToLive": null,
"createdAt": 1573540122600,
"updatedAt": 1573540445332,
"data": {
"cus_firstName": "Super",
"cus_surName": "Star",
"cus_position": "defense",
"cus_goals": 3,
"cus_assists": 5
}
}
],
"moreAfter": false,
"moreBefore": false
}
},
"status": 200
}