Skip to content
Snippets Groups Projects
Unverified Commit a3f76fec authored by Sean Madsen's avatar Sean Madsen Committed by GitHub
Browse files

Merge pull request #522 from vinuvarshith/entity-unique-fields-api-call-doc

Update Doc For New API Action 'getunique'
parents 1041f854 45960a9a
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,31 @@ Replace an old set of records with a new or modified set of records. ...@@ -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 Warning - REPLACE includes an implicit delete - use with care & test well
before using in productions 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> ## <del>setvalue</del>
**Deprecated.** Use the create action with the param 'id' instead. **Deprecated.** Use the create action with the param 'id' instead.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment