# Criteria for importing calendar entries

The `criteria` object specifies the calendar entries to import and optionally the target calendar.

The `criteria` object has two main properties: `Type` and `Data`. These are described in the following table. Properties enclosed in brackets are optional.

Table: Criteria object properties
Property | Description | Type | Value
--- | --- | --- | ---
`criteria.Type` | Specifies the type of calendar information to import. This is always `"CalendarEntry"`. | string | Possible values: `"CalendarEntry"`
`criteria.Data` | Specifies the entries to import. | object | Object with the properties specified below
`[criteria.Data.CalendarName]` | Specifies the calendar into which the entries are imported. If this property is not specified, the entries are imported into the default calendar. If the default calendar does not exist, it is created. | string | `<DriveLetter>:<FileName>` For example: `"C:Calendar"`
`criteria.Data.FileName` | Specifies the full path and file name of the source file from which the entries are imported. | string | The string cannot exceed 239 characters For example: `C:\\Data\\importfile.txt`
`criteria.Data.Format` | Specifies the data format of the source file. The supported formats are: iCal vCal For more information about these two formats, see the Calendar Service overview page. | string | Possible values: `"ICal"` `"VCal"`