GetPicklistValues — Retrieve values #
Retrieves the list of available values for a drop-down list (picklist) field in a module.
GET
https://apps.kafinea.com/{instance}/webservice.php
| Setting | Type | Required | Description |
|---|---|---|---|
operation |
string | yes | Must be getPicklistValues |
sessionName |
string | yes | Session ID |
moduleName |
string | yes | Module name (e.g., Accounts, Leads) |
fieldName |
string | yes | Technical field name |
Curl example:
curl "https://apps.kafinea.com/YourKafinea/webservice.php?operation=getPicklistValues&sessionName=YOUR_SESSION_ID&moduleName=Accounts&fieldName=industry"
SetPicklistValues — Change values #
Updates the list of available options for a drop-down list field.
⚠️ Warning! This operation will replace all existing values with the provided list. Any old values not included in the new list will be lost.
POST
https://apps.kafinea.com/{instance}/webservice.php
| Setting | Type | Required | Description |
|---|---|---|---|
operation |
string | yes | Must be setPicklistValues |
sessionName |
string | yes | Session ID |
moduleName |
string | yes | Name of the module in question |
fieldName |
string | yes | Technical name of the field to be modified |
values |
JSON | yes | JSON table of new options (e.g., ["Banque", "Tech"]) |
Curl example:
curl -X POST https://apps.kafinea.com/YourKafinea/webservice.php \
-d "operation=setPicklistValues" \
-d "sessionName=YOUR_SESSION_ID" \
-d "moduleName=Accounts" \
-d "fieldName=industry" \
-d 'values=["Banque","Tech","Santé"]'