---
title: "record(forUniqueId:)"
framework: addressbook
role: symbol
role_heading: Instance Method
path: "addressbook/abaddressbook/record(foruniqueid:)"
---

# record(forUniqueId:)

Returns the person or group record that matches the given unique ID.

## Declaration

```swift
func record(forUniqueId uniqueId: String!) -> ABRecord!
```

## Parameters

- `uniqueId`: The unique ID of the record. This value must not be nil; otherwise, an exception is raised.

## Return Value

Return Value The person or group record that matches the given unique ID.

## Discussion

Discussion If no record has the given ID, this method returns nil.
