Skip to main content
Version: 5.7.0

SysGetMessagesForOwnerPageOffset

Retrieves the page of messages, owned by specified ownerId, from the server based on the encoded context and specified page offset.

ServiceOperation
messagingSYS_GET_MESSAGES_FOR_OWNER_PAGE_OFFSET

Method Parameters

ParameterDescription
ownerIdThe profile ID of the owner
contextThe search and paging criteria
pageOffsetNumber of pages to go forward or back

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"context": "eyJzZWFyY2hDcml0ZXJpYSI6e30sInNvcnRDcml0ZXJpYSI6eyJtYkNyIjoxLCJtYlVwIjotMX0sInBhZ2luYXRpb24iOnsicm93c1BlclBhZ2UiOjEwLCJwYWdlTnVtYmVyIjoxLCJkb0NvdW50IjpmYWxzZSwic2tpcFJlY291bnQiOmZhbHNlfSwib3B0aW9ucyI6bnVsbCwicmVzdWx0Q291bnQiOjF9",
"results": {
"count": 20,
"page": 2,
"items": [
{
"mbVer": 1,
"mbUp": 1623349641504,
"read": false,
"msgCr": 1623349641498,
"msgVer": 1,
"mbCr": 1623349641504,
"msgId": "f6631ba6-c11e-4fea-bd65-181b16ec9335",
"msgUp": 1623349641498,
"message": {
"from": {
"id": "a687ba2f-cc66-463a-8b3c-db900eba7e94",
"name": "Rookie"
},
"sentAt": 1623349641498,
"to": [
"493dd9ad-5196-4494-aab1-02fbffa4c7af"
],
"content": {
"subject": "new",
"text": "test"
}
},
"msgbox": "inbox"
}
],
"moreAfter": false,
"moreBefore": false
}
},
"status": 200
}
Common Error Code

Status Codes

CodeNameDescription
40601FEATURE_NOT_ENABLEDMessaging feature is not enabled for app.