---
title: perRecordZoneSaveBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckmodifyrecordzonesoperation/perrecordzonesaveblock-1m45y
---

# perRecordZoneSaveBlock

The closure to execute when CloudKit saves a record zone.

## Declaration

```swift
var perRecordZoneSaveBlock: ((CKRecordZone.ID, Result<CKRecordZone, any Error>) -> Void)? { get set }
```

## Discussion

Discussion This property is a closure that returns no value and has the following parameters: The ID of the record zone that CloudKit saves. A Result that contains either The record zone that CloudKit saves An error that provides information about a failure saving the record zone. The closure executes once for each record zone in the recordZonesToSave property. Each time the closure executes, it executes serially with respect to the other record zone completion blocks of the operation. If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.
