Skip to main content

Get custom calendar settings

Gets the current users custom calendar settings

Function GetCustomCalendarSettings(Val URL, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: calendar.user.settings.get


1C:Enterprise/OneScript code example
    URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";

Result = OPI_Bitrix24.GetCustomCalendarSettings(URL);

URL = "b24-ar17wx.bitrix24.by";
Token = "8536b467006e9f06006b12e400000001000...";

Result = OPI_Bitrix24.GetCustomCalendarSettings(URL, Token);
    oint bitrix24 GetCustomCalendarSettings \
--url "b24-ar17wx.bitrix24.by" \
--token "***"
Result
{
"result": {
"view": "month",
"CalendarSelCont": false,
"SPCalendarSelCont": false,
"meetSection": "14",
"crmSection": false,
"showDeclined": true,
"denyBusyInvitation": false,
"collapseOffHours": "N",
"showWeekNumbers": "N",
"showTasks": "Y",
"syncTasks": "N",
"showCompletedTasks": "N",
"lastUsedSection": false,
"sendFromEmail": false,
"defaultSections": [],
"syncPeriodPast": 3,
"syncPeriodFuture": 12,
"defaultReminders": {
"fullDay": {
"type": "daybefore",
"before": 0,
"time": 480
},
"withTime": {
"type": "min",
"count": 15
}
},
"timezoneName": "Europe/Moscow",
"timezoneOffsetUTC": 10800,
"timezoneDefaultName": ""
},
"time": {
"start": 1739051130.1348,
"finish": 1739051130.16337,
"duration": 0.0285720825195312,
"processing": 0.00425004959106445,
"date_start": "2025-02-09T00:45:30+03:00",
"date_finish": "2025-02-09T00:45:30+03:00",
"operating_reset_at": 1739051730,
"operating": 0
}
}