---
title: "ABAddRecord(_:_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/abaddrecord(_:_:)"
---

# ABAddRecord(_:_:)

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

## Declaration

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

Return Value true if the record was added successfully, false otherwise.

## See Also

### Records

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