---
schema_version: "1"
id: 76b3130537adb8334240ca00ab434cd876d8fade8191ec5afddfe7c0c3b51282
title: Calendar
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_calendar.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_calendar.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ce343c9cb91b1d60a76947b70d10e4f3d9034a6fc3b7d19b1e5312c6c322cc7c
description: Represents a calendar. This can be a default user calendar, public calendar, resource calendar, or holiday calendar. This object is available in API version 45.0 and later.
---
# Calendar

Represents a calendar. This can be a default user calendar, public calendar, resource calendar, or holiday calendar. This object is available in API version 45.0 and later.

Newly created users are assigned a default calendar automatically. Similarly, holiday calendars are created automatically for each organization.

## Supported Calls

describeSObjects(), query(), retrieve(), search()

## Special Access Rules

Users with "View Setup and Configuration" user permissions can create, edit, and delete public and resource calendars in the user interface. All users, even those without the “View Setup and Configuration” user permission, can view calendars via the API.

## Fields

All fields are readable only.

| Field | Details |
| --- | --- |
| IsActive | 
Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

This field indicates whether a user can save events to the calendar.



 |
| Name | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

A user provided name that identifies the calendar. It is text-indexed for searchability. Note that this is not an enumerated field; it can be any string to a maximum length of 80 characters.



 |
| Type | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The type of the calendar. Possible values are:

- Holiday (Holiday Calendar)
- Public (Public Calendar)
- Resource (Resource Calendar)
- User (User Calendar)





 |
| UserId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the user that owns that calendar record. If Type=User, there’s a UserID associated (foreign key reference to the user). Otherwise, the user field is null.



 |