---
title: recordChangedBlock
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckfetchrecordchangesoperation/recordchangedblock
---

# recordChangedBlock

The block to execute with the contents of a changed record.

## Declaration

```swift
var recordChangedBlock: ((CKRecord) -> Void)? { get set }
```

## Discussion

Discussion The block returns no value and takes the following parameters: The operation object executes this block once for each record in the zone with changes since the previous fetch request. Each time the block executes, it executes serially with respect to the other progress blocks of the operation. If no records change, the block doesn’t execute. If you intend to use this block to process results, set it before executing the operation or submitting it to a queue.

## See Also

### Processing the Fetch Record Changes Results

- [recordWithIDWasDeletedBlock](cloudkit/ckfetchrecordchangesoperation/recordwithidwasdeletedblock.md)
- [fetchRecordChangesCompletionBlock](cloudkit/ckfetchrecordchangesoperation/fetchrecordchangescompletionblock.md)
