---
title: "init(recordZoneIDs:)"
framework: cloudkit
role: symbol
role_heading: Initializer
path: "cloudkit/ckfetchrecordzonesoperation/init(recordzoneids:)"
---

# init(recordZoneIDs:)

Creates an operation for fetching the specified record zones.

## Declaration

```swift
convenience init(recordZoneIDs zoneIDs: [CKRecordZone.ID])
```

## Parameters

- `zoneIDs`: An array of doc://com.apple.cloudkit/documentation/CloudKit/CKRecordZone/ID objects that represents the zones you want to retrieve. If you provide an empty array, you must set the doc://com.apple.cloudkit/documentation/CloudKit/CKFetchRecordZonesOperation/recordZoneIDs property before you execute the operation.

## Discussion

Discussion After creating the operation, assign a value to the fetchRecordZonesCompletionBlock property so you can process the results.

## See Also

### Initializing the Zone Fetch Operation

- [init()](cloudkit/ckfetchrecordzonesoperation/init().md)
