2025-01-19 15:35:14 +03:00
---
2025-01-26 13:33:10 +03:00
sidebar_position: 9
2025-05-05 10:07:34 +03:00
description: "Get calednar custom settings structure" and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
2025-01-19 15:35:14 +03:00
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get calednar custom settings structure
Gets an empty structure for setting custom calendar settings
`Function GetCalednarCustomSettingsStructure(Val Clear = False) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Clear | --empty | Boolean | ✖ | True > structure with empty valuse, False > field descriptions at values |
Returns: Structure Of KeyAndValue - Fields structure
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Result = OPI_Bitrix24.GetCalednarCustomSettingsStructure();
```
2025-02-10 12:36:30 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint bitrix24 GetCalednarCustomSettingsStructure \
--empty true
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint bitrix24 GetCalednarCustomSettingsStructure ^
--empty true
```
</TabItem>
</Tabs>
2025-01-19 15:35:14 +03:00
2025-02-09 18:15:36 +03:00
```json title="Result"
{
"view": "<standard presentation: day, week, month, list>",
"meetSection": "<invitation calendar>",
"crmSection": "<calendar for CRM>",
"showDeclined": "<show rejected events>",
"denyBusyInvitation": "<disallow invitations to an event if the time is full>",
"collapseOffHours": "<hide off hours: Y,N>",
"showWeekNumbers": "<show week number: Y,N>",
"showTasks": "<display tasks: Y,N>",
"syncTasks": "<synchronise the task calendar: Y,N>",
"showCompletedTasks": "<display completed tasks: Y,N>",
"lastUsedSection": "<default event calendar>",
"sendFromEmail": "<E-mail for sending invitations>",
"defaultSections": "<preset calendar settings>",
"syncPeriodPast": "<number of months to synchronise in the past period>",
"syncPeriodFuture": "<number of months to synchronise in the future period>",
"defaultReminders": {
"fullDay": [
{
"type": "<reminder time type: min, hour, day>",
"count": "<numeric value of the time interval>"
}
],
"withTime": [
{
"type": "<reminder time type: min, hour, day>",
"count": "<numeric value of the time interval>"
}
]
}
}
```