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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • How can i update following field using contact API
Pages: [1]

Author Topic: How can i update following field using contact API  (Read 667 times)

shashikant

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • CiviCRM version: civicrm 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: Mysql 5.1.56
  • PHP version: PHP Version 5.3.6
How can i update following field using contact API
June 29, 2012, 12:56:02 am
Hi
I wants to update fields in the form using single contact API.
The fields are first_name,last_name ,DOB, Email,Address and phone no.
When I try to update using contact API only first_name,last_name and DOB are getting updated and other are not getting updated.

I wants to know that how can I implement it using Contact api.
Thanks in advance.
« Last Edit: June 29, 2012, 01:46:23 am by shashikant »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: How can i update following field using contact API
June 30, 2012, 11:45:49 am
Hi,

Can you publish the code? hard to guess what you do/how you do it
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: How can i update following field using contact API
July 01, 2012, 11:28:09 pm
To update email, address and phone you will need to use the Email, Address and Phone API. The Contact API does not updated these, because there can be more than one for a given Contact?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

shashikant

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • CiviCRM version: civicrm 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: Mysql 5.1.56
  • PHP version: PHP Version 5.3.6
Re: How can i update following field using contact API
July 05, 2012, 02:13:15 am
Thanks for reply
Erik you are right.
Using different-different Api make my work easy and it worked.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: How can i update following field using contact API
July 05, 2012, 02:38:07 am
Glad it worked for you!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • How can i update following field using contact API

This forum was archived on 2017-11-26.