SysGetPage
Retrieves the first page of global entities matching the specified query context, bypassing ownership and ACL checks. Unlike GetPage, the results include entities owned by any user and system entities (entities without an owner).
This call is available via Cloud Code and S2S.
After retrieving a page of entities with this method, use SysGetPageOffset to retrieve previous or next pages.
See the Generic Paged Queries documentation for creating the context object.
| Service | Operation |
|---|---|
| globalEntity | SYS_GET_PAGE |
Method Parameters
| Parameter | Description |
|---|---|
| context | The json context for the page request. |
Usage
http://localhost:3000
- C#
- C++
- Obj-C
- Java
- JavaScript
- Dart
- Roblox
- GDScript
- Lua
- 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
-- 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 context = {
"pagination": {
"rowsPerPage": 50,
"pageNumber": 1
},
"searchCriteria": {
"entityType": "address"
},
"sortCriteria": {
"createdAt": 1,
"updatedAt": -1
}
};
var globalEntityProxy = bridge.getGlobalEntityServiceProxy();
var postResult = globalEntityProxy.sysGetPage(context);
if (postResult.status == 200) {
// Success!
}
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"_serverTime": 1761926400000,
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJlbnRpdHlUeXBlIjoiYWRkcmVzcyIsImdhbWVJZCI6IjEyMzQ1NiJ9",
"results": {
"count": 120,
"page": 1,
"items": [
{
"gameId": "123456",
"entityId": "14281c38-abf6-4ca2-8436-b2bd3a8d5a9a",
"ownerId": "784cc6c6-4569-4d75-bd10-62dc8ae0218a",
"entityType": "address",
"entityIndexedId": "home",
"version": 1,
"data": {
"street": "1309 Carling"
},
"acl": {
"other": 0
},
"timeToLive": 0,
"expiresAt": 9223372036854775807,
"createdAt": 1449861388021,
"updatedAt": 1449861388021
}
],
"moreAfter": true,
"moreBefore": false
}
},
"status": 200
}