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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • QUick API query
Pages: [1]

Author Topic: QUick API query  (Read 966 times)

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
QUick API query
July 16, 2010, 03:47:39 am
Have read the documentation and am using the API nicely to store campaign info and activities.

However if someone wants to unsubscribe from mailing lists, because I am handling this in custom code, I was going to mark them as onhold .

I cant see any api function to do an update on the 'on_hold' field. The 'civicrm_contact_add' doesnt take this param and there seems to be no update API cal lwhich takes this param directly.

Can someone confirm if this is or isn't true

cheers

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: QUick API query
July 16, 2010, 06:53:10 am
You tried with civicrm_contact_save? To check, use civicrm_contact_search and do print_r() on the results to see what fields are returned. AFAIK any fields there can be inputted to civicrm_contact_save as well. I have done this with other fields
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • QUick API query

This forum was archived on 2017-11-26.