---
title: "ODRecordCopyValues(_:_:_:)"
framework: opendirectory
role: symbol
role_heading: Function
path: "opendirectory/odrecordcopyvalues(_:_:_:)"
---

# ODRecordCopyValues(_:_:_:)

Returns the value of a single attribute of a record.

## Declaration

```swift
func ODRecordCopyValues(_ record: ODRecordRef!, _ attribute: String!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Unmanaged<CFArray>!
```

## Parameters

- `record`: The record.
- `attribute`: The attribute.
- `error`: An error reference for error details. Can be NULL.

## Return Value

Return Value The value of the requested attribute, or NULL if the attribute doesn’t exist.

## Discussion

Discussion If the requested attribute has not been fetched before, it is fetched in order to return its value. If the record has been fetched before, internal storage is consulted instead of the directory.

## See Also

### Working with Records

- [ODRecordAddMember(_:_:_:)](opendirectory/odrecordaddmember(_:_:_:).md)
- [ODRecordAddValue(_:_:_:_:)](opendirectory/odrecordaddvalue(_:_:_:_:).md)
- [ODRecordChangePassword(_:_:_:_:)](opendirectory/odrecordchangepassword(_:_:_:_:).md)
- [ODRecordContainsMember(_:_:_:)](opendirectory/odrecordcontainsmember(_:_:_:).md)
- [ODRecordCopyDetails(_:_:_:)](opendirectory/odrecordcopydetails(_:_:_:).md)
- [ODRecordDelete(_:_:)](opendirectory/odrecorddelete(_:_:).md)
- [ODRecordGetRecordName(_:)](opendirectory/odrecordgetrecordname(_:).md)
- [ODRecordGetRecordType(_:)](opendirectory/odrecordgetrecordtype(_:).md)
- [ODRecordGetTypeID()](opendirectory/odrecordgettypeid().md)
- [ODRecordRemoveMember(_:_:_:)](opendirectory/odrecordremovemember(_:_:_:).md)
- [ODRecordRemoveValue(_:_:_:_:)](opendirectory/odrecordremovevalue(_:_:_:_:).md)
- [ODRecordSetNodeCredentials(_:_:_:_:)](opendirectory/odrecordsetnodecredentials(_:_:_:_:).md)
- [ODRecordSetNodeCredentialsExtended(_:_:_:_:_:_:_:)](opendirectory/odrecordsetnodecredentialsextended(_:_:_:_:_:_:_:).md)
- [ODRecordSetValue(_:_:_:_:)](opendirectory/odrecordsetvalue(_:_:_:_:).md)
- [ODRecordSynchronize(_:_:)](opendirectory/odrecordsynchronize(_:_:).md)
