---
title: "calendarItems(withExternalIdentifier:)"
framework: eventkit
role: symbol
role_heading: Instance Method
path: "eventkit/ekeventstore/calendaritems(withexternalidentifier:)"
---

# calendarItems(withExternalIdentifier:)

Locates all reminders or the first occurrences of all events with the specified external identifier.

## Declaration

```swift
func calendarItems(withExternalIdentifier externalIdentifier: String) -> [EKCalendarItem]
```

## Parameters

- `externalIdentifier`: The calendar item’s external identifier.

## Return Value

Return Value An array of calendar items with the specified identifier.

## Discussion

Discussion Use calendarItemExternalIdentifier to obtain the external identifier. There may be more than one matching calendar item due to reasons discussed in calendarItemExternalIdentifier.

## See Also

### Accessing calendar events

- [event(withIdentifier:)](eventkit/ekeventstore/event(withidentifier:).md)
- [calendarItem(withIdentifier:)](eventkit/ekeventstore/calendaritem(withidentifier:).md)
- [remove(_:span:)](eventkit/ekeventstore/remove(_:span:).md)
- [remove(_:span:commit:)](eventkit/ekeventstore/remove(_:span:commit:).md)
- [remove(_:commit:)](eventkit/ekeventstore/remove(_:commit:).md)
- [save(_:span:)](eventkit/ekeventstore/save(_:span:).md)
- [save(_:span:commit:)](eventkit/ekeventstore/save(_:span:commit:).md)
- [save(_:commit:)](eventkit/ekeventstore/save(_:commit:).md)
