Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Update Doc For New API Action 'getunique' #522

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/api/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,31 @@ Replace an old set of records with a new or modified set of records.
Warning - REPLACE includes an implicit delete - use with care & test well
before using in productions

## getunique

Returns all unique fields (other than 'id' field) for a given entity.
```php
civicrm_api3('Contribution', 'getunique');
```

return

```php
{
"is_error": 0,
"version": 3,
"count": 2,
"values": {
"UI_contrib_trxn_id": [
"trxn_id"
],
"UI_contrib_invoice_id": [
"invoice_id"
]
}
}
```

## <del>setvalue</del>

**Deprecated.** Use the create action with the param 'id' instead.
Expand Down