---
title: "ABCopyRecordForUniqueId(_:_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/abcopyrecordforuniqueid(_:_:)"
---

# ABCopyRecordForUniqueId(_:_:)

Returns the record that matches the given unique ID.

## Declaration

```swift
func ABCopyRecordForUniqueId(_ addressBook: ABAddressBookRef!, _ uniqueId: CFString!) -> Unmanaged<ABRecordRef>!
```

## Parameters

- `addressBook`: The address book for the logged-in user.
- `uniqueId`: A unique ID for the record. If this is NULL, this function raises an exception.

## Return Value

Return Value The record that matches the given unique ID. If no record matches uniqueId, the function returns NULL. You are responsible for releasing this object.

## See Also

### Records

- [ABAddRecord(_:_:)](addressbook/abaddrecord(_:_:).md)
- [ABCopyRecordTypeFromUniqueId(_:_:)](addressbook/abcopyrecordtypefromuniqueid(_:_:).md)
- [ABCreateFormattedAddressFromDictionary(_:_:)](addressbook/abcreateformattedaddressfromdictionary(_:_:).md)
- [ABRecordCopyRecordType(_:)](addressbook/abrecordcopyrecordtype(_:).md)
- [ABRecordCopyUniqueId(_:)](addressbook/abrecordcopyuniqueid(_:).md)
- [ABRecordCopyValue(_:_:)](addressbook/abrecordcopyvalue(_:_:).md)
- [ABRecordCreateCopy(_:)](addressbook/abrecordcreatecopy(_:).md)
- [ABRecordIsReadOnly(_:)](addressbook/abrecordisreadonly(_:).md)
- [ABRecordRemoveValue(_:_:_:)](addressbook/abrecordremovevalue(_:_:).md)
- [ABRecordSetValue(_:_:_:_:)](addressbook/abrecordsetvalue(_:_:_:).md)
- [ABRemoveRecord(_:_:)](addressbook/abremoverecord(_:_:).md)
