<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKFetchRecordZoneChangesOperation/recordZoneFetchResultBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:So33CKFetchRecordZoneChangesOperationC8CloudKitE06recordC16FetchResultBlockySo08CKRecordC2IDC_s0J0OySo19CKServerChangeTokenC06serveroP0_10Foundation4DataVSg06clientopS0Sb10moreComingts5Error_pGtcSgvp"
  },
  "title" : "recordZoneFetchResultBlock"
}
-->

# recordZoneFetchResultBlock

The closure to execute when a record zone’s fetch finishes.

```
var recordZoneFetchResultBlock: ((CKRecordZone.ID, Result<(serverChangeToken: CKServerChangeToken, clientChangeTokenData: Data?, moreComing: Bool), any Error>) -> Void)? { get set }
```

## Discussion

The closure returns no value and takes the following parameters:

- `recordZoneID`: The record zone’s ID.
- `fetchChangesResult`: A <doc://com.apple.documentation/documentation/Swift/Result> that contains either:
  - A successful `Result` of
    - The change token to store and use in subsequent instances of [`CKFetchRecordZoneChangesOperation`](/documentation/CloudKit/CKFetchRecordZoneChangesOperation).
    - The more recent client change token from the device. If the change token isn’t the more recent change token you provided, the server might not have received the associated changes.
    - A Boolean that indicates whether this is the final record zone change. If [`fetchAllChanges`](/documentation/CloudKit/CKFetchRecordZoneChangesOperation/fetchAllChanges) is <doc://com.apple.documentation/documentation/Swift/false>, it’s the app’s responsibility to create additional instances of [`CKFetchRecordZoneChangesOperation`](/documentation/CloudKit/CKFetchRecordZoneChangesOperation) to fetch further changes.
  - An error object that contains information about a problem encountered retrieving the record zone changes.

The app is responsible for saving the change token at the end of the operation and providing it to future uses of [`CKFetchRecordZoneChangesOperation`](/documentation/CloudKit/CKFetchRecordZoneChangesOperation). Each time the closure executes, it executes serially with respect to the other closures of the operation.

Set this property before you execute the operation or submit it to a queue.

---

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)