From 5b2558eefd7af9e5c11638958d4aa1200ac43166 Mon Sep 17 00:00:00 2001 From: Seamus Lee <seamuslee001@gmail.com> Date: Tue, 15 Oct 2019 10:10:07 +1100 Subject: [PATCH] Add documentation on mulitple record custom data set create as per Coleman's comment --- docs/api/v4/custom-data.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/api/v4/custom-data.md b/docs/api/v4/custom-data.md index 411147f3..d18afa56 100644 --- a/docs/api/v4/custom-data.md +++ b/docs/api/v4/custom-data.md @@ -18,5 +18,8 @@ which vary for each API entity and function. !!! note When retrieving custom data from a multiple record custom group set the custom data will be returned as an array of custom fields which contains the value and the id of the row in the custom field table. -!!! note - Setting of multivalue custom data fields is still a work in progress. +Multiple record custom data sets are treated as an entity for the purposes of creating records. So you can just specify the values in the same way as for any other create. e.g. + +```php +civicrm_api4('Custom_My_Cool_Fields', 'create, $params) +``` -- GitLab