<!--
{
  "availability" : [
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABCopyRecordTypeFromUniqueId(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABCopyRecordTypeFromUniqueId"
  },
  "title" : "ABCopyRecordTypeFromUniqueId(_:_:)"
}
-->

# ABCopyRecordTypeFromUniqueId(_:_:)

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

```
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

A string with the name of the type for the record that matches the given unique ID. You are responsible for releasing this object.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)