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

# ABAddRecord(_:_:)

Adds a record of the specified type to the Address Book database.

```
func ABAddRecord(_ addressBook: ABAddressBookRef!, _ record: ABRecordRef!) -> Bool
```

## Parameters

`addressBook`

The address book for the logged-in user.

`record`

The record to add to the Address Book database. If this parameter is `NULL`, the function raises an exception.

## Return Value

`true` if the record was added successfully, `false` otherwise.

---

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)