POST Agents/Pocket/GetPocketStartupData
Some tooltip text!
• 4 minutes to read
• 4 minutes to read
POST /api/v1/Agents/Pocket/GetPocketStartupData
Query String Parameters
Parameter Name | Type | Description |
---|---|---|
$select | string | Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields. |
POST /api/v1/Agents/Pocket/GetPocketStartupData?$select=name,department,category/id
Request Headers
Parameter Name | Description |
---|---|
Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
Content-Type | Content-type of the request body: application/json , text/json , application/xml , text/xml , application/x-www-form-urlencoded , application/json-patch+json , application/merge-patch+json |
Accept | Content-type(s) you would like the response in: application/json , text/json , application/xml , text/xml , application/json-patch+json , application/merge-patch+json |
Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Request Body: request
Tables, CurrentClientTime
Property Name | Type | Description |
---|---|---|
Tables | Array | |
CurrentClientTime | String |
Response:
OK
Response | Description |
---|---|
200 | OK |
Response body: PocketStartupData
Property Name | Type | Description |
---|---|---|
TableRights | array | List of tablerights for logged in user, in the same order as the Tables array parameter |
PhoneLocaleTimeZoneData | TimeZoneData | |
BaseLocaleTimeZoneData | TimeZoneData | |
OverdueSalesCount | int32 | Number of overdued sales for current user |
NotificationsCount | int32 | Number of new invitations |
SystemWebPanels | array | Web panels defined in Admin client, set to be shown in Pocket client |
PocketPreferences | array | All Pocket specific preferences, including WebPanels defined by the user in Pocket |
IsPushNotificationEnabled | bool | Is push notification configured and enabled in Netserver |
CustomData | string | Custom data for Pocket, in JSON format |
TableRight | TableRight | The carrier's table right |
FieldProperties | object | Field property dictionary mapping field names to field access rights. |
Sample request
POST /api/v1/Agents/Pocket/GetPocketStartupData
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: sv
Content-Type: application/json; charset=utf-8
{
"Tables": [
"aut",
"qui"
],
"CurrentClientTime": "2023-10-13T14:13:40.9533555+02:00"
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"TableRights": [
"ipsa",
"itaque"
],
"PhoneLocaleTimeZoneData": null,
"BaseLocaleTimeZoneData": null,
"OverdueSalesCount": 972,
"NotificationsCount": 840,
"SystemWebPanels": [
{
"WebPanelId": 286,
"Name": "Ankunding Inc and Sons",
"Tooltip": "perspiciatis",
"Deleted": true,
"Rank": 341,
"UrlEncoding": "ANSI",
"VisibleIn": "ActivityDialog",
"OnCentral": false,
"OnSatellite": false,
"OnTravel": true,
"OnSalesMarketingWeb": false,
"OnSalesMarketingPocket": false,
"ShowInMenuBar": true,
"ShowInToolBar": false,
"ShowInAddressBar": true,
"ShowInStatusBar": false,
"WindowName": "Dare, Will and Purdy",
"Url": "http://www.example.com/",
"ProgId": "rerum",
"Icon": 461,
"AlwaysReloadOnShow": false,
"NeverReloadOnCurrentChange": true,
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 93
}
}
}
],
"PocketPreferences": [
{
"Level": "Database",
"RawValue": "repudiandae",
"Specification": null,
"DisplayValue": "quo",
"DisplayTooltip": "temporibus",
"DisplayType": "Bool",
"TabOrder": null,
"TargetId": 284,
"PrefDescId": 467,
"TableName": "Champlin Inc and Sons",
"UserPreferenceId": 624,
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 330
}
}
}
],
"IsPushNotificationEnabled": false,
"CustomData": "quae",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 115
}
}
}