<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKFetchRecordZonesOperation/init(recordZoneIDs:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKFetchRecordZonesOperation(im)initWithRecordZoneIDs:"
  },
  "title" : "init(recordZoneIDs:)"
}
-->

# init(recordZoneIDs:)

Creates an operation for fetching the specified record zones.

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

## Parameters

`zoneIDs`

An array of [`CKRecordZone.ID`](/documentation/CloudKit/CKRecordZone/ID) objects that represents the zones you want to retrieve. If you provide an empty array, you must set the [`recordZoneIDs`](/documentation/CloudKit/CKFetchRecordZonesOperation/recordZoneIDs) property before you execute the operation.

## Discussion

After creating the operation, assign a value to the [`fetchRecordZonesCompletionBlock`](/documentation/CloudKit/CKFetchRecordZonesOperation/fetchRecordZonesCompletionBlock) property so you can process the results.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)