# PimImportResult

The PimImportResult type of the TypeScript SDK, which calendars.import and addressbooks.import take or answer.

```ts
type PimImportResult = {
  createdCount: number
  failedCount: number
  items: PimImportItem[]
  replacedCount: number
  syncToken?: string
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `createdCount` | `number` | Count of newly created objects |
| `failedCount` | `number` | Count of items that failed to import |
| `items` | [`PimImportItem[]`](/docs/sdks/typescript/types/pim-import-item) | List of import results per item |
| `replacedCount` | `number` | Count of existing objects replaced |
| `syncToken` | `string` | Optional. Updated collection sync token |

## Used by

| Method | What it does |
| --- | --- |
| [`calendars.import`](/docs/sdks/typescript/calendars/import) | Import calendar data |
| [`addressbooks.import`](/docs/sdks/typescript/addressbooks/import) | Import addressbook data |
