CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to using API to save value for custom field multiple record?
Pages: [1]

Author Topic: How to using API to save value for custom field multiple record?  (Read 572 times)

binhtran89

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.4 Drupal 7
  • CMS version: 1
  • MySQL version: 5.2
  • PHP version: 5.4
How to using API to save value for custom field multiple record?
March 19, 2014, 12:13:29 am
How can I set data for custom field multiple record via API v3 ?
Please help me ?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: How to using API to save value for custom field multiple record?
March 19, 2014, 06:27:25 am
From the documentation in api/v3/CustomValue.php:
Quote
// in this case custom_33 is part of a multi-valued group, and we're updating record id 5
 * 'custom_33:5' => value,
 // inserts new record in multi-valued group
 * 'custom_33:-1' => value,
 // inserts another new record in multi-valued group
 * 'custom_33:-2' => value,
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • How to using API to save value for custom field multiple record?

This forum was archived on 2017-11-26.