---
title: recordID
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckrecord/reference/recordid
---

# recordID

The ID of the referenced record.

## Declaration

```swift
@NSCopying var recordID: CKRecord.ID { get }
```

## Discussion

Discussion Use the ID in this property to fetch the record on the other end of the link.

## See Also

### Getting the Reference Attributes

- [action](cloudkit/ckrecord/reference/action-swift.property.md)
- [CKRecord.ReferenceAction](cloudkit/ckrecord/referenceaction.md)
