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) »
  • Return contact source
Pages: [1]

Author Topic: Return contact source  (Read 453 times)

Rutger

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Return contact source
August 28, 2012, 06:40:54 am
Hi everybody,

I've a question about returning the 'source' of a contact (The field is in the user profile is 'contact_source' and in the database is 'source').
I use the folowing code:

{crmAPI entity='Contact' action="GETSINGLE" var="contact" contact_id=$row.contact_id return=phone,email,source}

phone and email are returned correctly but I can figure out how to return the 'source' field.

Thanx in advance!

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: Return contact source
August 28, 2012, 11:32:33 pm
Hi Rutger,
I have had a try with
Code: [Select]
{crmAPI entity='Contact' action="GETSINGLE" var="contact" contact_id=$row.contact_id return=phone,email,contact_source}but that does not do anything either, nor does the Contact Get. Seems like the contact_source is not returned in the API. Would be great if you coud report and fix the API for the contact_source?
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) »
  • Return contact source

This forum was archived on 2017-11-26.