<!--
{
  "availability" : [
    "iOS: 2.0.0 - 9.0.0",
    "iPadOS: 2.0.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABRecordGetRecordID(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABRecordGetRecordID"
  },
  "title" : "ABRecordGetRecordID(_:)"
}
-->

# ABRecordGetRecordID(_:)

Returns the unique ID of a record.

```
func ABRecordGetRecordID(_ record: ABRecord!) -> ABRecordID
```

## Parameters

`record`

The record whose ID is being returned.

## Return Value

The unique ID of `record` when the record exists in the Address Book database.

## Discussion

[`kABRecordInvalidID`](/documentation/AddressBook/kABRecordInvalidID) when the record hasn’t been saved to the database.

---

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)