Calendar: Overview of Methods

The calendar helps users plan meetings, tasks, and events. Calendars can be managed using a group of methods calendar.section.*.

Calendar events are scheduled activities or meetings. A group of methods calendar.event.* is used to create, modify, retrieve, or delete events.

Quick navigation: all methods and events

User documentation: Bitrix24 calendar

Calendar Connection with Other Objects

User. The calendar is linked to a user by the calendar owner's ID ownerId for the calendar type user. The user ID can be obtained using the method user.get.

Group. The calendar is linked to a group by the calendar owner's ID ownerId for the calendar type group. The ID can be obtained by creating a new group or by getting the list of groups.

Calendar Settings

In the main calendar settings, the company's working hours, weekends, and holidays are specified. The settings can be retrieved using the method calendar.settings.get.

In user settings, an employee can specify personal preferences, such as time zone or week number display. User settings can be retrieved using the method calendar.user.settings.get and set using the method calendar.user.settings.set.

User Documentation

Resource Booking

In Bitrix24, resource booking is done through a custom CRM field of type resourcebooking. Such a field can be created in the lead and deal forms.

Resource availability can be tracked in the CRM Calendar. Technically, a resource is a section of the calendar, and booking is a calendar event.

The management of resources is handled by a group of methods calendar.resource.*.

Widgets

An application can be embedded into the calendar. In the list of calendar view types, there is a place for embedding CALENDAR_GRIDVIEW, where you can add your item.

Overview of Methods and Events

Scope: calendar

Who can execute the method: any user

Main

Method

Description

calendar.section.add

Add a new calendar

calendar.section.update

Update a calendar

calendar.section.get

Get a list of calendars

calendar.section.delete

Delete a calendar

calendar.settings.get

Get main calendar settings

calendar.user.settings.get

Get user calendar settings

calendar.user.settings.set

Set user calendar settings

Event

Triggered

OnCalendarSectionAdd

When a calendar or resource section is added

OnCalendarSectionUpdate

When a calendar or resource section is modified

OnCalendarSectionDelete

When a calendar or resource section is deleted

Calendar Events

Method

Description

calendar.event.add

Add an event

calendar.event.update

Update an event

calendar.event.getById

Get an event by id

calendar.event.get

Get a list of calendar events

calendar.event.getNearest

Get a list of upcoming events

calendar.event.delete

Delete an event

calendar.meeting.status.get

Get the current user's participation status in an event

calendar.meeting.status.set

Set the participation status in an event for the current user

calendar.accessibility.get

Get the availability of users from the list

Event

Triggered

OnCalendarEntryAdd

When an event is added

OnCalendarEntryUpdate

When an event is modified

OnCalendarEntryDelete

When an event is deleted

Resource Booking

Method

Description

calendar.resource.add

Add a resource

calendar.resource.update

Update a resource

calendar.resource.list

Get a list of resources

calendar.resource.booking.list

Get resource bookings by filter

calendar.resource.delete

Delete a resource