---
title: "ABCopyRecordTypeFromUniqueId(_:_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/abcopyrecordtypefromuniqueid(_:_:)"
---

# ABCopyRecordTypeFromUniqueId(_:_:)

Returns the type name of the record that matches a given unique ID.

## Declaration

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

## 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 A string with the name of the type for the record that matches the given unique ID. You are responsible for releasing this object.

## See Also

### Records

- [ABAddRecord(_:_:)](addressbook/abaddrecord(_:_:).md)
- [ABCopyRecordForUniqueId(_:_:)](addressbook/abcopyrecordforuniqueid(_:_:).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)
